org.molwind.io
Interface WorldLocator

All Known Implementing Classes:
AbstractWorldLocator, MolwindServerConfiguration

public interface WorldLocator

WorldLocator implementations locate the data to build up molecular worlds.

Version:
1.0
Author:
Oliver Karch

Method Summary
 java.lang.String[] getWorldNames()
          Returns a (possibly empty) list of locatable worlds
 MolwindWorld locateWorld(java.lang.String worldName)
          Locates a world with the given name.
 

Method Detail

getWorldNames

java.lang.String[] getWorldNames()
Returns a (possibly empty) list of locatable worlds

Returns:
an array of world names

locateWorld

MolwindWorld locateWorld(java.lang.String worldName)
                         throws java.io.IOException
Locates a world with the given name.

Parameters:
worldName - the name of the world
Returns:
a molwind world descriptor
Throws:
java.io.IOException - is thrown upon i/o error


Copyright © 2008-2010. All Rights Reserved.