Class TreeDepthAgentCycle

java.lang.Object
  extended by TreeDepthAgentDefault
      extended by TreeDepthAgentCycle
All Implemented Interfaces:
IAgent, ITreeDepAlg

public class TreeDepthAgentCycle
extends TreeDepthAgentDefault


Constructor Summary
TreeDepthAgentCycle()
           
 
Method Summary
 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 TreeDepthAgentDefault
checkStateValidity, getMsgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeDepthAgentCycle

public TreeDepthAgentCycle()
Method Detail

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 variables
channelsRecieveFrom - 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