Class FlowDownModuleStoreIterator
java.lang.Object
|
+----java.util.VectorIterator
|
+----ModuleStoreIterator
|
+----FlowDownModuleStoreIterator
- class FlowDownModuleStoreIterator
- extends ModuleStoreIterator
FlowDownModuleStoreIterator is one of three classes that can be used to
walk (depth first) through a network of modules. This class uses the action
method on modules of this StoreIterator and proceeds to underlaying modules
via the outconnectors by using the FlowDownOutConnectorStoreIterator.
- See Also:
- FlowDownOutConnectorStoreIterator, FlowDownConnectionStoreIterator, Module
-
flowDown
- The flowDown object contains the specific methods that will be run
when the action method is run from the action method defined in this
class.
-
FlowDownModuleStoreIterator(FlowIteration)
-
-
action(Module)
- In action the followAction method is run on all modules that fulfil the
module PreCondition.
flowDown
private FlowIteration flowDown
- The flowDown object contains the specific methods that will be run
when the action method is run from the action method defined in this
class.
- See Also:
- FlowIteration, action
FlowDownModuleStoreIterator
FlowDownModuleStoreIterator(FlowIteration fd)
- Parameters:
- fd
- The flowDown object contains the specific functions that will be run
on each module. They will have to be passed on to the other FlowDown...
Iterators in order to be known every time this class is used. They
must be known in the action method of this class. (A less beautifull
solution would have been to make the flowDown variable static.)
- See Also:
- FlowDown, action
action
public void action(Module m)
- In action the followAction method is run on all modules that fulfil the
module PreCondition. Go to the next underlaying modules (via the out
connectors of this module) when the modulePostCondition is fulfilled.
- Overrides:
- action in class ModuleStoreIterator
- See Also:
- FlowDownOutConnectorStoreIterator, FlowIteration