org.eu.sk.zero.acd
Class ComponentTypes

java.lang.Object
  |
  +--org.eu.sk.zero.acd.ComponentTypes

public class ComponentTypes
extends Object

Container class for types of components

Version:
$Id: ComponentTypes.java,v 1.3 2003/04/10 16:00:09 robo Exp $

Constructor Summary
ComponentTypes()
          Creates an empty container.
 
Method Summary
 void add(org.eu.sk.zero.acd.ComponentType val)
          Adds a component type.
 void add(org.eu.sk.zero.acd.ComponentType val, org.eu.sk.zero.acd.Module m)
          Adds a component type.
 void addAll(Collection c)
          Adds multiple component types.
 void addAll(Collection c, org.eu.sk.zero.acd.Module m)
          Adds multiple component types.
 Collection collection()
          Returns collection of component types.
 Iterator getAreaTypesIterator()
          Allows browsing all area types in the container.
 Iterator getComponentTypesIterator(org.eu.sk.zero.acd.ComponentType type)
          Allows browsing all component types according the given type.
 Iterator getEdgeTypesIterator()
          Allows browsing all edge types in the container.
 Iterator getNodeTypesIterator()
          Allows browsing all node types in the container.
 Iterator iterator()
          Allows browsing all component types in the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentTypes

public ComponentTypes()
Creates an empty container.

Method Detail

add

public void add(org.eu.sk.zero.acd.ComponentType val,
                org.eu.sk.zero.acd.Module m)
Adds a component type.


add

public void add(org.eu.sk.zero.acd.ComponentType val)
Adds a component type.


addAll

public void addAll(Collection c,
                   org.eu.sk.zero.acd.Module m)
Adds multiple component types.

Parameters:
c - must contain only objects of ComponentType class

addAll

public void addAll(Collection c)
Adds multiple component types.

Parameters:
c - must contain only objects of ComponentType class

collection

public Collection collection()
Returns collection of component types.


iterator

public Iterator iterator()
Allows browsing all component types in the container.


getNodeTypesIterator

public Iterator getNodeTypesIterator()
Allows browsing all node types in the container.


getEdgeTypesIterator

public Iterator getEdgeTypesIterator()
Allows browsing all edge types in the container.


getAreaTypesIterator

public Iterator getAreaTypesIterator()
Allows browsing all area types in the container.


getComponentTypesIterator

public Iterator getComponentTypesIterator(org.eu.sk.zero.acd.ComponentType type)
Allows browsing all component types according the given type.

Parameters:
type - if it is a NodeType, the iterator will browse all nodes and so on