org.molwind.chemical.model
Class ChemicalWorld

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

public class ChemicalWorld
extends AbstractMolwindWorld

ChemicalWorld represents a world of chemicals.

Version:
1.0
Author:
Oliver Karch

Constructor Summary
ChemicalWorld(java.lang.String worldName)
          Creates a new chemical world.
ChemicalWorld(java.lang.String worldName, java.io.File file)
          Creates a new chemical world.
 
Method Summary
 void addFile(java.io.File file)
          Adds the file to this chemical world.
 java.util.Iterator getEntityIterator()
          Returns an iterator over the world's entities.
 TileGenerator getTileGenerator()
          Returns an instance of a tile generator.
 
Methods inherited from class org.molwind.model.AbstractMolwindWorld
getName, getRelationshipResolver, getTopologyManager, setName, setRelationshipResolver, setTopologyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChemicalWorld

public ChemicalWorld(java.lang.String worldName,
                     java.io.File file)
Creates a new chemical world.

Parameters:
worldName - the name of the world
file - molecule data read from an SDFile

ChemicalWorld

public ChemicalWorld(java.lang.String worldName)
Creates a new chemical world.

Parameters:
worldName - the name of the world
Method Detail

addFile

public void addFile(java.io.File file)
Adds the file to this chemical world.

Parameters:
file - molecule data read from an SDFile

getEntityIterator

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

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

getTileGenerator

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

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


Copyright © 2008-2010. All Rights Reserved.