org.vizzini.ai.neuralnetwork
Class ConnectorCollection

java.lang.Object
  extended by org.vizzini.ai.neuralnetwork.ConnectorCollection

public class ConnectorCollection
extends Object

Provides a collection to hold IConnector s.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
ConnectorCollection()
           
 
Method Summary
 void add(IConnector connector)
          Add the given connector.
 boolean equals(Object object)
          Return true if the given object is equal to this.
 IConnector get(ILayer fromLayer, ILayer toLayer)
          Return the connector for the given parameters.
protected  Map get(String toLayerName)
          Return the map for the given parameter.
 IConnector get(String fromLayerName, String toLayerName)
          Return the connector for the given parameters.
protected  Map getConnectors()
          Return the connectors map.
 int hashCode()
          Returns a hash code value for the object.
 boolean isEmpty()
          Return true if this collection is empty.
 Iterator iterator()
          Return an iterator over this collection.
 Iterator iterator(String toLayerName)
          Return an iterator over the collection of connectors with the given to layer.
 void remove(IConnector connector)
          Remove the given connector.
 int size()
          Return the size of this collection.
 List toList()
          Return a list of members of this collection.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorCollection

public ConnectorCollection()
Method Detail

add

public void add(IConnector connector)
Add the given connector.

Parameters:
connector - Connector.
Since:
v0.3

equals

public boolean equals(Object object)
Return true if the given object is equal to this.

Overrides:
equals in class Object
Parameters:
object - The object to compare.
Since:
v0.3

get

public IConnector get(ILayer fromLayer,
                      ILayer toLayer)
Return the connector for the given parameters.

Parameters:
fromLayer - From layer.
toLayer - To layer.
Since:
v0.3

get

public IConnector get(String fromLayerName,
                      String toLayerName)
Return the connector for the given parameters.

Parameters:
fromLayerName - From layer name.
toLayerName - To layer name.
Since:
v0.3

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Since:
v0.3

isEmpty

public boolean isEmpty()
Return true if this collection is empty.

Since:
v0.3

iterator

public Iterator iterator()
Return an iterator over this collection.

Since:
v0.3

iterator

public Iterator iterator(String toLayerName)
Return an iterator over the collection of connectors with the given to layer.

Parameters:
toLayerName - To layer name.
Since:
v0.3

remove

public void remove(IConnector connector)
Remove the given connector.

Parameters:
connector - Connector.
Since:
v0.3

size

public int size()
Return the size of this collection.

Since:
v0.3

toList

public List toList()
Return a list of members of this collection.

Since:
v0.3

get

protected Map get(String toLayerName)
Return the map for the given parameter.

Parameters:
toLayerName - To layer name.
Since:
v0.3

getConnectors

protected Map getConnectors()
Return the connectors map.

Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02