Class SwarmState
java.lang.Object
SwarmState
public class SwarmState
- extends java.lang.Object
Class for storing a snapshot of the global state of the swarm.
Useful for passing data between simulation and rendering threads.
Also useful for serializing agent behavior for later analysis.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwarmState
protected SwarmState()
SwarmState
public SwarmState(double[] arrLfPositions,
StateBundle[] arrStates,
IAgent agent,
double lfTime,
CommGraph graph)
- Constructor
SwarmState
public SwarmState(SwarmState src)
- Copy constructor.
accessPositions
public double[] accessPositions()
accessStates
public StateBundle[] accessStates()
accessAgent
public IAgent accessAgent()
getTime
public double getTime()
getGraph
public CommGraph getGraph()