kaos.vlik
Class Runner
java.lang.Object
kaos.vlik.Runner
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- PrintRunner
public class Runner
- extends java.lang.Object
- implements java.lang.Runnable
Instances contol an interface from KAoS to some Visualizer.
This interface has several parts:
1. clients -- The visualizers that this Runner supports.
2. transports -- Means by which clients are able to communicate with
the Runner.
3. services -- Capabilities of the Common Service Interface (or CSI)
that the Runner provides to its clients.
4. translators -- Tools for transforming CSI messages into a languge
that the clients understand.
A Runner is responcible for configuring transports, services,
and translators. A Runner also needs to provide a way for clients to
to connect to it.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Runner
public Runner()
getConnectionMethod
public java.lang.String getConnectionMethod()
- Returns:
- A string explaining what clients need to do to connect to
this runner.
main
public static void main(java.lang.String[] args)
- A Runner can be run in its own VM. If args contains "-cm" or
"--connectionMethod", then the runner should print its connection method.
Becuase of Java's curious approach to inheretance, subclasses will
need this.
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
printConnectionMethodIfRequested
public void printConnectionMethodIfRequested(java.lang.String[] args)
slumber
public static void slumber()
- Puts the current thread to sleep until its interrupted.