Class TreeDepthAgentCycle
java.lang.Object
TreeDepthAgentDefault
TreeDepthAgentCycle
- All Implemented Interfaces:
- IAgent, ITreeDepAlg
public class TreeDepthAgentCycle
- extends TreeDepthAgentDefault
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeDepthAgentCycle
public TreeDepthAgentCycle()
makeCopy
public ITreeDepAlg makeCopy()
- Description copied from interface:
IAgent
- 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.
If the agent has no internal state, this function can just return
"this".
- Specified by:
makeCopy
in interface IAgent
- Specified by:
makeCopy
in interface ITreeDepAlg
- Overrides:
makeCopy
in class TreeDepthAgentDefault
isViableTarget
public boolean isViableTarget(TreeConstraintState currState,
TreeConstraintState stateTarget)
- Specified by:
isViableTarget
in interface ITreeDepAlg
- Overrides:
isViableTarget
in class TreeDepthAgentDefault
updateState
public StateBundle updateState(ILogicVarBundle statePrev,
double[] arrLfStateCont,
double lfCurrTime,
int idxStateOffset,
IEnvironment env,
java.util.Iterator<CommLink> channelsRecieveFrom)
- This we do need to over-ride
- Specified by:
updateState
in interface IAgent
- Overrides:
updateState
in class TreeDepthAgentDefault
- Parameters:
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
- Returns:
- new state bundle containing discrete state of agent
and new control function
- See Also:
for type handled by iterator