Class SwarmState

java.lang.Object
  extended by 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

Constructor Summary
protected SwarmState()
           
  SwarmState(double[] arrLfPositions, StateBundle[] arrStates, IAgent agent, double lfTime, CommGraph graph)
          Constructor
  SwarmState(SwarmState src)
          Copy constructor.
 
Method Summary
 IAgent accessAgent()
           
 double[] accessPositions()
           
 StateBundle[] accessStates()
           
 CommGraph getGraph()
           
 double getTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwarmState

protected SwarmState()

SwarmState

public SwarmState(double[] arrLfPositions,
                  StateBundle[] arrStates,
                  IAgent agent,
                  double lfTime,
                  CommGraph graph)
Constructor


SwarmState

public SwarmState(SwarmState src)
Copy constructor.

Method Detail

accessPositions

public double[] accessPositions()

accessStates

public StateBundle[] accessStates()

accessAgent

public IAgent accessAgent()

getTime

public double getTime()

getGraph

public CommGraph getGraph()