|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMonitorNode
public class MonitorNode
Data structure representing a single monitoring command.
This version only supports ongoing monitoring, not recurring monitoring. To perform one-time-only monitoring, set startTime = stopTime.
Field Summary | |
---|---|
(package private) int |
clientID
The identifier of the monitoring app that asked for this information. |
(package private) double |
startTime
The simulation time at which this monitoring command becomes relevant. |
(package private) double |
stopTime
The simulation time after which this monitoring command becomes irrelevant and should be discarded. |
(package private) java.lang.String |
targetVar
The identifier of the variable to be monitored. |
Constructor Summary | |
---|---|
MonitorNode(double start,
double stop,
java.lang.String target,
int source)
Basic constructor. |
|
MonitorNode(int source,
java.lang.String attribs)
Simpler constructor that is more future-compatible - parses the given String to determine all parameters except clientID . |
Method Summary | |
---|---|
int |
compareTo(MonitorNode o)
Compares two MonitorNodes. |
boolean |
equals(java.lang.Object o)
Checks for equality. |
int |
getClientID()
|
double |
getStartTime()
|
double |
getStopTime()
|
java.lang.String |
getTargetVar()
|
void |
setClientID(int i)
|
void |
setStartTime(double t)
|
void |
setStopTime(double t)
|
void |
setTargetVar(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
double startTime
double stopTime
java.lang.String targetVar
int clientID
Constructor Detail |
---|
public MonitorNode(double start, double stop, java.lang.String target, int source)
public MonitorNode(int source, java.lang.String attribs)
clientID
.
source
- Numeric identifier of the monitoring app making this requestattribs
- String of the format "targetVar
\r\nstartTime
\r\nstopTime
"Method Detail |
---|
public double getStartTime()
public double getStopTime()
public java.lang.String getTargetVar()
public int getClientID()
public void setStartTime(double t)
public void setStopTime(double t)
public void setTargetVar(java.lang.String s)
public void setClientID(int i)
public int compareTo(MonitorNode o)
compareTo
in interface java.lang.Comparable<MonitorNode>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |