de.jreality.util
Class BSHServer

java.lang.Object
  extended by de.jreality.util.BSHServer

public class BSHServer
extends 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
 
Method Summary
 void customize(JMenuBar menuBar, Viewer viewer)
           
 void finish()
           
 int getMetric()
           
 SceneGraphComponent makeWorld()
           
 void setConfiguration(ConfigurationAttributes config)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSHServer

public BSHServer(int port)
          throws Exception
create a bsh server listening to the given port

Parameters:
port - the port to listen
Throws:
Exception - if IO failes or bsh failes
Method Detail

finish

public void finish()

setConfiguration

public void setConfiguration(ConfigurationAttributes config)

makeWorld

public SceneGraphComponent makeWorld()

getMetric

public int getMetric()

customize

public void customize(JMenuBar menuBar,
                      Viewer viewer)