de.unihalle.informatik.Alida.operator
Class ALDDataPort

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDPort
      extended by de.unihalle.informatik.Alida.operator.ALDDataPort

public class ALDDataPort
extends ALDPort

A data port acts as the reference for a data object in the processing history.


Field Summary
private  org.graphdrawing.graphml.xmlns.GraphmlType graphmlHistory
          The processing history as graphml if any.
private  java.util.Hashtable<java.lang.String,java.lang.String> properties
          The properties of the underlying MTBData at the time of creation of this Dataport
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDPort
typeName
 
Constructor Summary
ALDDataPort(java.lang.Object obj)
          Create a data port for an object.
 
Method Summary
 org.graphdrawing.graphml.xmlns.GraphmlType getGraphmlHistory()
          Get the grahphml history of this data port
 java.lang.String getLocation()
          Get the location property, i.e. property with key location
 java.lang.String getProperty(java.lang.String key)
          Get a property value for the given key.
 java.util.Enumeration<java.lang.String> getPropertyKeys()
          Get the keys of all properties set in this data object
 void print()
          Print some information to System.out.
 void setGraphmlHistory(org.graphdrawing.graphml.xmlns.GraphmlType history)
          Set the grahphml history of this data port
 void setProperty(java.lang.String key, java.lang.Object o)
          Set the property with key to new value o.
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDPort
getOrigin, print, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphmlHistory

private org.graphdrawing.graphml.xmlns.GraphmlType graphmlHistory
The processing history as graphml if any. This history is most cases read from a file along with the data object itself.


properties

private java.util.Hashtable<java.lang.String,java.lang.String> properties
The properties of the underlying MTBData at the time of creation of this Dataport

Constructor Detail

ALDDataPort

public ALDDataPort(java.lang.Object obj)
Create a data port for an object.

Parameters:
obj - object to be represented by this data port.
Method Detail

getGraphmlHistory

public org.graphdrawing.graphml.xmlns.GraphmlType getGraphmlHistory()
Get the grahphml history of this data port

Returns:
history of this data port

getLocation

public java.lang.String getLocation()
Get the location property, i.e. property with key location


getProperty

public java.lang.String getProperty(java.lang.String key)
Get a property value for the given key.

Parameters:
key - key of property to get

getPropertyKeys

public java.util.Enumeration<java.lang.String> getPropertyKeys()
Get the keys of all properties set in this data object

Returns:
property keys

print

public void print()
Print some information to System.out.

Overrides:
print in class ALDPort

setGraphmlHistory

public void setGraphmlHistory(org.graphdrawing.graphml.xmlns.GraphmlType history)
Set the grahphml history of this data port

Parameters:
history - history of this data port

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object o)
Set the property with key to new value o.

Parameters:
key - key of property to set
o - new value of this property