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>
public class NetworkTopologyExecutor extends AbstractGraphExecutor<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
Constructors Constructor Description NetworkTopologyExecutor(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
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:
AbstractGraphExecutor(ISchedule, ScheduleParameters, Traverser, Executor)
,validateForExecution(GraphParams)
-
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:
#NetworkTopologyExecutor(ISchedule, ScheduleParameters, Traverser, Executor, NetworkTopology)
,AbstractGraphExecutor(ISchedule, ScheduleParameters, Traverser, Executor)
,validateForExecution(GraphParams)
-
-
Method Detail
-
validateForExecution
public boolean validateForExecution(GraphParams<Object> params)
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
-
-