org.molwind.model
Class AbstractMolwindWorld

java.lang.Object
  extended by org.molwind.model.AbstractMolwindWorld
All Implemented Interfaces:
MolwindWorld

public abstract class AbstractMolwindWorld
extends java.lang.Object
implements MolwindWorld

AbstractMolwindWorld represents an abstract molwind world description which can be used for sub-classing.

Version:
1.0
Author:
Oliver Karch

Constructor Summary
protected AbstractMolwindWorld(java.lang.String newWorldName)
          Constructor of this class.
 
Method Summary
abstract  java.util.Iterator getEntityIterator()
          Returns an iterator over the world's entities.
 java.lang.String getName()
          Returns the name of the world.
 RelationshipResolver getRelationshipResolver()
          Returns a strategy object to resolve relationships among entities.
abstract  TileGenerator getTileGenerator()
          Returns an instance of a tile generator.
 TopologyManager getTopologyManager()
          Get the TopologyManager value.
 void setName(java.lang.String newWorldName)
          Set the Name value.
 void setRelationshipResolver(RelationshipResolver newResolver)
          Set the RelationshipResolver value.
 void setTopologyManager(TopologyManager newTopologyManager)
          Set the TopologyManager value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMolwindWorld

protected AbstractMolwindWorld(java.lang.String newWorldName)
Constructor of this class.

Parameters:
newWorldName - the new Name value
Method Detail

getName

public java.lang.String getName()
Returns the name of the world.

Specified by:
getName in interface MolwindWorld
Returns:
the world's name

setName

public void setName(java.lang.String newWorldName)
Set the Name value.

Parameters:
newWorldName - the new Name value

getRelationshipResolver

public RelationshipResolver getRelationshipResolver()
Returns a strategy object to resolve relationships among entities.

Specified by:
getRelationshipResolver in interface MolwindWorld
Returns:
a resolver for entity reader for this world

setRelationshipResolver

public void setRelationshipResolver(RelationshipResolver newResolver)
Set the RelationshipResolver value.

Parameters:
newResolver - the new RelationshipResolver value

getTopologyManager

public TopologyManager getTopologyManager()
Get the TopologyManager value.

Specified by:
getTopologyManager in interface MolwindWorld
Returns:
the TopologyManager value

setTopologyManager

public void setTopologyManager(TopologyManager newTopologyManager)
Set the TopologyManager value.

Parameters:
newTopologyManager - the new TopologyManager value

getEntityIterator

public abstract java.util.Iterator getEntityIterator()
Returns an iterator over the world's entities.

Specified by:
getEntityIterator in interface MolwindWorld
Returns:
an entity reader for this world

getTileGenerator

public abstract TileGenerator getTileGenerator()
Returns an instance of a tile generator.

Specified by:
getTileGenerator in interface MolwindWorld
Returns:
a tile generator which visualizes the entities of this world


Copyright © 2008-2010. All Rights Reserved.