|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TreeAlgDraw
public class TreeAlgDraw
Method Summary | |
---|---|
void |
addDrawAgent(IDrawAgent agent)
|
boolean |
doCallback(double[] arrLfState,
IAgent agent,
StateBundle[] arrStates,
ISensor[] arrSensors,
IEnvironment env,
CommGraph graph,
double lfSimTime)
Callback function |
java.lang.Object |
getLastObject()
In case we need more info then true/false from doCallback |
void |
paint(java.awt.Graphics g)
|
double |
realTimeToSimTime(java.util.Date dateRealTime)
|
void |
reDraw(java.awt.Graphics g)
|
void |
scaleProjection(int nNewX,
int nNewY)
|
void |
setDrawAllLinks(boolean bDrawAllLinks)
|
void |
setDynamicEnvironment(IEnvironment env)
does nothing in this implementation |
void |
setEnvDraw(IEnvDraw envDraw)
|
void |
setProjection(IProjection proj)
Pass in a projection class to handle mapping points to screen coords. |
void |
setStaticEnvironment(IEnvironment env)
does nothing in this implementation |
java.util.Date |
simTimeToRealTime(double lfSimTime)
|
void |
xlateProjection(int nXOff,
int nYOff)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.Date simTimeToRealTime(double lfSimTime)
simTimeToRealTime
in interface ISwarmDraw
public double realTimeToSimTime(java.util.Date dateRealTime)
realTimeToSimTime
in interface ISwarmDraw
public void setDrawAllLinks(boolean bDrawAllLinks)
public void setStaticEnvironment(IEnvironment env)
public void setDynamicEnvironment(IEnvironment env)
public void setEnvDraw(IEnvDraw envDraw)
setEnvDraw
in interface ISwarmDraw
public void addDrawAgent(IDrawAgent agent)
addDrawAgent
in interface ISwarmDraw
public void setProjection(IProjection proj)
setProjection
in interface ISwarmDraw
public void scaleProjection(int nNewX, int nNewY)
scaleProjection
in interface ISwarmDraw
public void xlateProjection(int nXOff, int nYOff)
xlateProjection
in interface ISwarmDraw
public void reDraw(java.awt.Graphics g)
reDraw
in interface ISwarmDraw
public void paint(java.awt.Graphics g)
public boolean doCallback(double[] arrLfState, IAgent agent, StateBundle[] arrStates, ISensor[] arrSensors, IEnvironment env, CommGraph graph, double lfSimTime)
doCallback
in interface ISimUICallback
arrLfState
- state vector (initially initial state,
overwritten with final state)agent
- agent mapping (currently only support for homogenous swarms
)arrStates
- discrete state and control function
of each agent (assumed
not to change over integration)arrSensors
- array of sensor interfaces.env
- environmentgraph
- new communication graph (if an update is needed
pass null otherwise)lfSimTime
- current simulated time
public java.lang.Object getLastObject()
getLastObject
in interface ISimUICallback
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |