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 $

Variable Index

 o list

Constructor Index

 o ModuleStore()

Method Index

 o add(Module)
 o add(StoreElement)
This Store should work on Modules instead of StoreElements, but method add(StoreElement) is in the interface this class implements.
 o at(int)
 o clone()
Clone the modulestore.
 o connectors(ConnectorCollector)
Return the Connectors of all Modules in the Store that satisfy some condition.
 o elements()
This method is here because it is specified in the interface Store.
 o endModules()
Search for all end modules in this networks's list of modules.
 o inConnectors()
Return all InConnectors of all modules in the store.
 o indexOf(Module)
 o markedModules()
Search for all marked modules in this networks's list of modules.
 o modules()
 o outConnectors()
Return all OutConnectors of all modules in the store.
 o remove(Module)
 o remove(ModuleStore)
Remove a set of Modules from this ModuleStore.
 o removeAll()
 o removeAt(int)
 o size()
 o startModules()
Search for all start modules in this networks's list of modules.
 o toString()

Variables

 o list
 private Vector list

Constructors

 o ModuleStore
 public ModuleStore()

Methods

 o add
 public void add(Module m)
 o 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.

 o at
 public Module at(int index)
 o indexOf
 public int indexOf(Module module)
 o remove
 public void remove(Module m)
 o removeAt
 public void removeAt(int index)
 o removeAll
 public void removeAll()
 o size
 public int size()
 o modules
 public Enumeration modules()
 o 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.

 o 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.
 o toString
 public String toString()
Overrides:
toString in class Object
 o 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.
 o inConnectors
 public InConnectorStore inConnectors()
Return all InConnectors of all modules in the store.

Returns:
an InConnectorStore containing the InConnectors.
 o outConnectors
 public OutConnectorStore outConnectors()
Return all OutConnectors of all modules in the store.

Returns:
an OutConnectorStore containing the OutConnectors.
 o 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.
 o 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.
 o 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.
 o clone
 public Object clone()
Clone the modulestore.

Overrides:
clone in class Object