Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.engine
Interface IConnection

All Known Implementing Classes:
Connection

public interface IConnection

Interface for connections between algorithmic elements. Connections are similiar to directed edges in a data flow graph.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:58:24 $
Author:
Andreas Rummler

Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
           
 java.lang.Object getData()
          Retrieves a data object from this connection without removing it.
 IElement getSource()
          Returns the source element of this connection.
 IElement getTarget()
          Returns the target element of this connection.
 boolean hasData()
          Checks if there is a data object associated to this connection.
 java.lang.Object popData()
          Retrieves a data object from this connection.
 void pushData(java.lang.Object data)
          Pushes a data object into this connection.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setSource(IElement source)
          Sets a new source element.
 void setTarget(IElement target)
          Sets a new target element.
 

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

firePropertyChangeEvent

public void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)

getSource

public IElement getSource()
Returns the source element of this connection.

Returns:
source element

setSource

public void setSource(IElement source)
Sets a new source element.

Parameters:
source - new source element

getTarget

public IElement getTarget()
Returns the target element of this connection.

Returns:
target element

setTarget

public void setTarget(IElement target)
Sets a new target element.

Parameters:
target - new target element

pushData

public void pushData(java.lang.Object data)
Pushes a data object into this connection.

Parameters:
data - data object

hasData

public boolean hasData()
Checks if there is a data object associated to this connection.

Returns:
true if this connection contains some data object, false instead

popData

public java.lang.Object popData()
Retrieves a data object from this connection. The object is returned and removed from this connection.

Returns:
data object stored in this connection

getData

public java.lang.Object getData()
Retrieves a data object from this connection without removing it.

Returns:
data object stored in this connection

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems