de.jreality.util
Class BSHServer
java.lang.Object
de.jreality.util.BSHServer
public class BSHServer
- extends java.lang.Object
This class opens a ServerSocket and accepts connections.
The received input is passed to a ReaderBSH instance.
This class implements LoadableScene, so it can be plugged into a viewer.
TODO: stop doesn't work yet.
- Author:
- weissman
Constructor Summary |
BSHServer(int port)
create a bsh server listening to the given port |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BSHServer
public BSHServer(int port)
throws java.lang.Exception
- create a bsh server listening to the given port
- Parameters:
port
- the port to listen
- Throws:
java.lang.Exception
- if IO failes or bsh failes
finish
public void finish()
setConfiguration
public void setConfiguration(ConfigurationAttributes config)
makeWorld
public SceneGraphComponent makeWorld()
getMetric
public int getMetric()
customize
public void customize(javax.swing.JMenuBar menuBar,
Viewer viewer)