Package repast.simphony.engine.graph
Class NetworkTopologyExecutor
java.lang.Object
repast.simphony.engine.graph.AbstractGraphExecutor<Object>
repast.simphony.engine.graph.NetworkTopologyExecutor
- All Implemented Interfaces:
Executor<GraphParams<Object>>
,GraphExecutor<Object>
Executor for NetworkTopologies. This validates nodes' execution by checking
to make sure they are still connected.
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
-
Constructor Summary
ConstructorDescriptionNetworkTopologyExecutor
(ISchedule schedule, ScheduleParameters scheduleParams, Executor<Object> nodeExecutor, Network topology) This is the same as NetworkTopologyExecutor(ISchedule, ScheduleParameters, new TopologyVisitor(topology), Executor, NetworkTopology).NetworkTopologyExecutor
(ISchedule schedule, ScheduleParameters baseParams, Traverser<Object> traverser, Executor<Object> nodeExecutor, Network topology) Constructs this executor to execute using the given schedule and node execution parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
validateForExecution
(GraphParams<Object> params) Checks if two nodes are still connected with {@link NetworkTopology#areIncident(Object, Object).Methods inherited from class repast.simphony.engine.graph.AbstractGraphExecutor
execute, getNextTime, getRootTime, getScheduleParameters
-
Constructor Details
-
NetworkTopologyExecutor
public NetworkTopologyExecutor(ISchedule schedule, ScheduleParameters baseParams, Traverser<Object> traverser, Executor<Object> nodeExecutor, Network topology) Constructs this executor to execute using the given schedule and node execution parameters. This class primarily is interested in the topology as it uses it for validation, the rest of the parameters are used by the super class.- Parameters:
schedule
- the schedule to schedule itself withbaseParams
- the parameters for the schedulingtraverser
- the traverser for traversing the graphnodeExecutor
- the executor for executing nodestopology
- the topology to use to determine if nodes are connected- See Also:
-
NetworkTopologyExecutor
public NetworkTopologyExecutor(ISchedule schedule, ScheduleParameters scheduleParams, Executor<Object> nodeExecutor, Network topology) This is the same as NetworkTopologyExecutor(ISchedule, ScheduleParameters, new TopologyVisitor(topology), Executor, NetworkTopology).- Parameters:
schedule
- the schedule to schedule itself withbaseParams
- the parameters for the schedulingnodeExecutor
- the executor for executing nodestopology
- the topology to use to determine if nodes are connected- See Also:
-
-
Method Details
-
validateForExecution
Checks if two nodes are still connected with {@link NetworkTopology#areIncident(Object, Object).- Parameters:
params
- the parameters used to get the current node and previous one- Returns:
- if the two nodes are still connected according to the topology
-