|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDrawStartState
public class DrawStartState
| 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)
This code should be fixed to be more readable Currently it is copied from TreeAlgDraw, but with the "adding to the state queue" and "removing from the state queue" disabled |
void |
scaleProjection(int nNewX,
int nNewY)
|
void |
setDrawAllLinks(boolean bDrawAllLinks)
|
void |
setDynamicEnvironment(IEnvironment env)
does nothing in this implementation |
void |
setEnvDraw(IEnvDraw envDraw)
set class for drawing the environment |
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 ISwarmDrawpublic double realTimeToSimTime(java.util.Date dateRealTime)
realTimeToSimTime in interface ISwarmDrawpublic void setDrawAllLinks(boolean bDrawAllLinks)
public void setStaticEnvironment(IEnvironment env)
public void setDynamicEnvironment(IEnvironment env)
public void setEnvDraw(IEnvDraw envDraw)
setEnvDraw in interface ISwarmDrawpublic void setProjection(IProjection proj)
setProjection in interface ISwarmDrawpublic void scaleProjection(int nNewX,
int nNewY)
scaleProjection in interface ISwarmDrawpublic void xlateProjection(int nXOff,
int nYOff)
xlateProjection in interface ISwarmDrawpublic void addDrawAgent(IDrawAgent agent)
addDrawAgent in interface ISwarmDrawpublic void reDraw(java.awt.Graphics g)
reDraw in interface ISwarmDrawpublic 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 ISimUICallbackarrLfState - 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 All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||