|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TreeDepthAgentDefault
public class TreeDepthAgentDefault
Constructor Summary | |
---|---|
TreeDepthAgentDefault()
|
Method Summary | |
---|---|
boolean |
checkStateValidity(StateBundle state)
checks that a particular discrete state is valid for this agent |
void |
getMsgs(ILogicVarBundle discreteState,
IDiscreteDynamicsCallback dynCallback,
double[] arrLfStateCont,
double lfCurrTime,
int idxStateOffset,
java.util.Iterator<CommLink> channelsToSendOn)
I don't think we need this for this class. |
boolean |
isViableTarget(TreeConstraintState currState,
TreeConstraintState stateTarget)
|
ITreeDepAlg |
makeCopy()
in case the agent has some internal state, this allows synchronized wrapper calls to cache a snapshot of the agent at some rational point in time. |
StateBundle |
updateState(ILogicVarBundle statePrev,
double[] arrLfStateCont,
double lfCurrTime,
int idxStateOffset,
IEnvironment env,
java.util.Iterator<CommLink> channelsRecieveFrom)
This we do need to over-ride |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeDepthAgentDefault()
Method Detail |
---|
public boolean checkStateValidity(StateBundle state)
IAgent
checkStateValidity
in interface IAgent
public void getMsgs(ILogicVarBundle discreteState, IDiscreteDynamicsCallback dynCallback, double[] arrLfStateCont, double lfCurrTime, int idxStateOffset, java.util.Iterator<CommLink> channelsToSendOn)
getMsgs
in interface IAgent
discreteState
- discrete component of agent statearrLfStateCont
- global vector of continuous stateidxStateOffset
- offset into global state vector
corresonding to this agent.channelsToSendOn
- Iterator containing objects of type
CommLink corresponding to channels to send messages
on (neighbor indices can be ascertained from channels).for type handled by iterator
public ITreeDepAlg makeCopy()
IAgent
makeCopy
in interface IAgent
makeCopy
in interface ITreeDepAlg
public StateBundle updateState(ILogicVarBundle statePrev, double[] arrLfStateCont, double lfCurrTime, int idxStateOffset, IEnvironment env, java.util.Iterator<CommLink> channelsRecieveFrom)
updateState
in interface IAgent
statePrev
- previous state (do not modify)arrLfStateCont
- vector of all continuous states (do not modify)idxStateOffset
- offset into arrLfStateCont corresponding to
start of this agents continuous variableschannelsRecieveFrom
- iterator storing CommLink
classes corresponding incoming channels
for type handled by iterator
public boolean isViableTarget(TreeConstraintState currState, TreeConstraintState stateTarget)
isViableTarget
in interface ITreeDepAlg
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |