|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.instantreality.InstantIO.Namespace
org.instantreality.InstantIO.Node
public abstract class Node
Superclass of all Nodes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.instantreality.InstantIO.Namespace |
|---|
Namespace.Listener |
| Field Summary | |
|---|---|
static int |
NODE_DISABLED
|
static int |
NODE_ERROR
|
static int |
NODE_RUNNING
|
static int |
NODE_SLEEPING
|
| Constructor Summary | |
|---|---|
Node()
Creates a new Node object. |
|
| Method Summary | |
|---|---|
protected void |
addLog(java.lang.String entry)
Adds an entry to the log. |
java.lang.String |
getDetailedInfo()
Returns a detailed information string. |
java.util.Vector |
getFieldNames()
Returns the names of all fields. |
java.lang.String |
getFieldValue(java.lang.String name)
Returns the value of a field. |
void |
getLog(java.util.Vector entries)
Returns the entries of the log. |
java.lang.String |
getShortInfo()
|
int |
getState()
|
protected void |
initialize()
Gets called when the Namespace is enabled. |
void |
newData(InSlot inSlot)
Gets called when new data is available on one inslot handled by this Node. |
void |
setFieldValue(java.lang.String name,
java.lang.String value)
Sets the value of a field. |
protected void |
setState(int state)
|
protected void |
setState(int state,
java.lang.String shortInfo)
|
protected void |
shutdown()
Gets called when the Namespace is disabled. |
void |
start()
Gets called when the Node should start operation. |
void |
startInSlot(InSlot inSlot)
Gets called when an inslot handled by this Node gets connected to the first outslot. |
void |
startOutSlot(OutSlot outSlot)
Gets called when an outslot handled by this Node gets connected to the first inslot. |
void |
stop()
Gets called when the Node should stop operation. |
void |
stopInSlot(InSlot inSlot)
Gets called when the last outslot is disconnected from an inslot handled by this Node. |
void |
stopOutSlot(OutSlot outSlot)
Gets called when the last inslot is disconnected from an outslot handled by this Node. |
abstract NodeType |
type()
Returns meta information about the Node. |
protected java.lang.String |
typeName()
Returns the type name of the Node. |
| Methods inherited from class org.instantreality.InstantIO.Namespace |
|---|
addExternalRoute, addInSlot, addListener, addNamespace, addNamespace, addOutSlot, addRoute, clear, clearExternalRoutes, clearNamespaces, clearRoutes, dirty, disable, dispose, enable, enabled, finalize, getBaseURL, getLabel, removeExternalRoute, removeInSlot, removeListener, removeNamespace, removeOutSlot, removeRoute, saveState, setBaseURL, setDirty, setFieldValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NODE_RUNNING
public static final int NODE_SLEEPING
public static final int NODE_ERROR
public static final int NODE_DISABLED
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
protected java.lang.String typeName()
typeName in class Namespacepublic abstract NodeType type()
protected final void setState(int state)
protected final void setState(int state,
java.lang.String shortInfo)
public final int getState()
public final java.lang.String getShortInfo()
public java.lang.String getDetailedInfo()
public void setFieldValue(java.lang.String name,
java.lang.String value)
setFieldValue in class Namespacename - The name of the field.value - The new value of the field.public java.lang.String getFieldValue(java.lang.String name)
getFieldValue in class Namespacename - The name of the field.
public java.util.Vector getFieldNames()
getFieldNames in class Namespaceprotected void initialize()
initialize in class Namespaceprotected void shutdown()
shutdown in class Namespacepublic void start()
public void stop()
public void startOutSlot(OutSlot outSlot)
startOutSlot in interface OutSlot.ListeneroutSlot - The outslot.public void stopOutSlot(OutSlot outSlot)
stopOutSlot in interface OutSlot.ListeneroutSlot - The outslot.public void startInSlot(InSlot inSlot)
startInSlot in interface InSlot.ListenerinSlot - The inslot.public void stopInSlot(InSlot inSlot)
stopInSlot in interface InSlot.ListenerinSlot - The inslot.public void newData(InSlot inSlot)
newData in interface InSlot.ListenerinSlot - The InSlot that generated the event.protected void addLog(java.lang.String entry)
entry - The new entry.public void getLog(java.util.Vector entries)
entries - The vector that gets filled with
the entries of the log.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||