Class ModuleStore
java.lang.Object
|
+----ModuleStore
- class ModuleStore
- extends Object
- implements Store, Cloneable
This class implements a Store for Modules using
java.util.Vector.
Specific class of meant-to-be-generic class java.util.Vector.
This class really should be a subclass of java.util.Vector,
but most members of java.util.Vector are final.
- Version:
- $Revision: 1.12 $
-
list
-
-
ModuleStore()
-
-
add(Module)
-
-
add(StoreElement)
- This Store should work on Modules instead of StoreElements,
but method add(StoreElement) is in the interface this class
implements.
-
at(int)
-
-
clone()
- Clone the modulestore.
-
connectors(ConnectorCollector)
- Return the Connectors of all Modules in the Store that satisfy some
condition.
-
elements()
- This method is here because it is specified in the interface
Store.
-
endModules()
- Search for all end modules in this networks's list of modules.
-
inConnectors()
- Return all InConnectors of all modules in the store.
-
indexOf(Module)
-
-
markedModules()
- Search for all marked modules in this networks's list of modules.
-
modules()
-
-
outConnectors()
- Return all OutConnectors of all modules in the store.
-
remove(Module)
-
-
remove(ModuleStore)
- Remove a set of Modules from this ModuleStore.
-
removeAll()
-
-
removeAt(int)
-
-
size()
-
-
startModules()
- Search for all start modules in this networks's list of modules.
-
toString()
-
list
private Vector list
ModuleStore
public ModuleStore()
add
public void add(Module m)
add
public void add(StoreElement item)
- This Store should work on Modules instead of StoreElements,
but method add(StoreElement) is in the interface this class
implements.
at
public Module at(int index)
indexOf
public int indexOf(Module module)
remove
public void remove(Module m)
removeAt
public void removeAt(int index)
removeAll
public void removeAll()
size
public int size()
modules
public Enumeration modules()
elements
public Enumeration elements()
- This method is here because it is specified in the interface
Store. Given that this store only works with Modules, it
makes more sense to name this method modules(). This method
just refers to modules() for its result.
markedModules
public ModuleStore markedModules()
- Search for all marked modules in this networks's list of modules.
- Returns:
- an instance of ModuleStore containing all marked modules.
toString
public String toString()
- Overrides:
- toString in class Object
connectors
private ConnectorStore connectors(ConnectorCollector collector)
- Return the Connectors of all Modules in the Store that satisfy some
condition.
- Parameters:
- connector - A ConnectorCollector that implements the
condition that determines which Connectors are returned, and
which are not.
- Returns:
- a ConnectorStore containing the selected Connectors.
inConnectors
public InConnectorStore inConnectors()
- Return all InConnectors of all modules in the store.
- Returns:
- an InConnectorStore containing the InConnectors.
outConnectors
public OutConnectorStore outConnectors()
- Return all OutConnectors of all modules in the store.
- Returns:
- an OutConnectorStore containing the OutConnectors.
remove
public void remove(ModuleStore s)
- Remove a set of Modules from this ModuleStore.
- Parameters:
- s - the Modules that must be removed from this ModuleStore.
startModules
public ModuleStore startModules()
- Search for all start modules in this networks's list of modules.
- Returns:
- an instance of ModuleStore containing all start modules.
endModules
public ModuleStore endModules()
- Search for all end modules in this networks's list of modules.
- Returns:
- an instance of ModuleStore containing all end modules.
clone
public Object clone()
- Clone the modulestore.
- Overrides:
- clone in class Object