|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.AbstractElement
Abstract algorithm element.
Field Summary | |
protected IAlgorithm |
algorithm
The algorithm this element belongs to. |
protected IConnection[] |
incoming
Incoming connections. |
protected java.lang.Object[] |
input
Input data. |
protected IConnection[] |
outgoing
Outgoing connections. |
protected java.lang.Object[] |
output
Output data. |
Constructor Summary | |
AbstractElement(int incomingSlots,
int outgoingSlots)
Constructor. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to this element. |
void |
firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
Fires a property change event. |
IAlgorithm |
getAlgorithm()
Returns the algorithm this element is contained in. |
IConnection |
getIncoming(int index)
Gets an incoming connection. |
int |
getIncomingIndex(IConnection connection)
Returns the index of the given incoming connection. |
Metadata |
getMetadata(java.lang.String path)
Returns a metadata object for this element from the associated metadata store. |
IConnection |
getOutgoing(int index)
Gets an outgoing connection. |
int |
getOutgoingIndex(IConnection connection)
Returns the index of the given outgoing connection. |
java.lang.Object[] |
getOutput()
Gets the output data |
int |
incomingSize()
Returns the number of incoming connections. |
int |
outgoingSize()
Returns the number of outgoing connections. |
void |
removeConnection(IConnection connection)
Removes a connection from this element. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from this element. |
void |
setAlgorithm(IAlgorithm algorithm)
Sets the algorithm this element belongs to. |
void |
setIncoming(IConnection connection,
int index)
Sets an incoming connection. |
void |
setInput(java.lang.Object[] input)
Sets the input data. |
void |
setMetadata(Metadata data)
Sets a metadata object for this element. |
void |
setOutgoing(IConnection connection,
int index)
Sets an outgoing connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.evolvica.engine.IElement |
activate, getOperator, isActivatable, setIncomingSize, setOutgoingSize |
Field Detail |
protected IAlgorithm algorithm
protected IConnection[] incoming
protected IConnection[] outgoing
protected java.lang.Object[] input
protected java.lang.Object[] output
Constructor Detail |
public AbstractElement(int incomingSlots, int outgoingSlots)
incomingSlots
- number of input slotsoutgoingSlots
- number of output slotsMethod Detail |
public IAlgorithm getAlgorithm()
IElement
getAlgorithm
in interface IElement
IElement.getAlgorithm()
public void setAlgorithm(IAlgorithm algorithm)
IElement
setAlgorithm
in interface IElement
algorithm
- the algorithm this element belongs toIElement.setAlgorithm(org.evolvica.engine.IAlgorithm)
public Metadata getMetadata(java.lang.String path)
IElement
getMetadata
in interface IElement
path
- metadata path
IElement.getMetadata(java.lang.String)
public void setMetadata(Metadata data)
IElement
setMetadata
in interface IElement
data
- metadata objectIElement.setMetadata(org.evolvica.util.Metadata)
public int incomingSize()
IElement
incomingSize
in interface IElement
IElement.incomingSize()
public int outgoingSize()
IElement
outgoingSize
in interface IElement
IElement.outgoingSize()
public IConnection getIncoming(int index)
IElement
getIncoming
in interface IElement
index
- index of the connection
IElement.getIncoming(int)
public int getIncomingIndex(IConnection connection)
IElement
getIncomingIndex
in interface IElement
connection
- incoming connection
IElement.getIncomingIndex(org.evolvica.engine.IConnection)
public void setIncoming(IConnection connection, int index)
IElement
setIncoming
in interface IElement
connection
- connection to setindex
- index of the coonectionIElement.setIncoming(org.evolvica.engine.IConnection, int)
public IConnection getOutgoing(int index)
IElement
getOutgoing
in interface IElement
index
- index of the connection
IElement.getOutgoing(int)
public int getOutgoingIndex(IConnection connection)
IElement
getOutgoingIndex
in interface IElement
connection
- outgoing connection
IElement.getOutgoingIndex(org.evolvica.engine.IConnection)
public void removeConnection(IConnection connection)
IElement
removeConnection
in interface IElement
connection
- connection to be removedIElement.removeConnection(org.evolvica.engine.IConnection)
public void setOutgoing(IConnection connection, int index)
IElement
setOutgoing
in interface IElement
connection
- connection to setindex
- index of the coonectionIElement.setOutgoing(org.evolvica.engine.IConnection, int)
public void setInput(java.lang.Object[] input)
input
- input datapublic java.lang.Object[] getOutput()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
IElement
addPropertyChangeListener
in interface IElement
listener
- property change listener to be addedIElement.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
IElement
removePropertyChangeListener
in interface IElement
listener
- property change listener to be removedIElement.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
IElement
firePropertyChangeEvent
in interface IElement
event
- event to be firedIElement.firePropertyChangeEvent(java.beans.PropertyChangeEvent)
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |