|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexperiment.ExperimentState
public class ExperimentState
Created by IntelliJ IDEA. User: andy Date: Mar 22, 2010 Contains all the data that corresponds to a single experiment state. Implements Serializable in order to allow easy storing.
Constructor Summary | |
---|---|
ExperimentState()
|
Method Summary | |
---|---|
void |
add(Link link)
Adds a Link to the current state. |
void |
add(Node node)
Adds a Node to the current state. |
long |
getByteOffset()
As a state contains parsed experiment data it is also associated with a byte offset, which points to the location of the file where the parsing has reached. |
int |
getLinkNumber()
|
int |
getNodeNumber()
|
java.util.Collection<Node> |
getNodeSet()
|
double |
getTime()
|
ExtendedXMLStreamReader |
getXMLReader()
Each ExperimentState object is bound to one ExtendedXMLStreamReader. |
Link |
indexLink(java.lang.String sourceId,
java.lang.String targetId)
Indexes a link. |
Node |
indexNode(java.lang.String nodeId)
Indexes a node based on its id. |
Node |
indexNode(javax.vecmath.Vector3d position)
Tries to find the Node that corresponds to a position in 3d space. |
void |
setByteOffset()
As a state contains parsed experiment data it is also associated with a byte offset which points to the location of the file where the parsing has reached. |
void |
setTime(double timestamp)
Is called to change a state's timestamp. |
void |
setXMLReader(ExtendedXMLStreamReader reader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExperimentState()
Method Detail |
---|
public void add(Link link)
link
- the link object to be added.public void add(Node node)
node
- the node object to be added.public long getByteOffset()
public int getLinkNumber()
public int getNodeNumber()
public java.util.Collection<Node> getNodeSet()
public double getTime()
public ExtendedXMLStreamReader getXMLReader()
public Link indexLink(java.lang.String sourceId, java.lang.String targetId)
sourceId
- the Link's source Node id.targetId
- the Link's target Node id.
public Node indexNode(java.lang.String nodeId)
nodeId
- the node's id
public Node indexNode(javax.vecmath.Vector3d position)
position
- a three dimensional Vector containing the x, y, z double values.
public void setByteOffset()
public void setTime(double timestamp) throws badSyntaxException
timestamp
- is a long variable containing the new timestamp.
badSyntaxException
- if the timestamp is smaller than the state's timestamp.public void setXMLReader(ExtendedXMLStreamReader reader)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |