Package casa.lepton.console
Class OppNetConsole
java.lang.Object
casa.lepton.console.OppNetConsole
Class processing text commands sent through a TCP session by invoking the
methods of a
OppNetGraph
instance.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close the server socket.void
notifyEdgeListeners
(OppEdge edge, String command) void
notifyNodeListeners
(OppNode node, String command) void
Opens a server socket on console's TCP port and start waiting for clients' requests.
-
Constructor Details
-
OppNetConsole
Constructor.- Parameters:
oppNetGraph
- the graphprops
-- Throws:
IOException
-
-
Method Details
-
startConsole
public void startConsole()Opens a server socket on console's TCP port and start waiting for clients' requests. -
closeConsole
public void closeConsole()Close the server socket. -
notifyNodeListeners
-
notifyEdgeListeners
-