de.unihalle.informatik.Alida.operator
Class ALDData

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDData
Direct Known Subclasses:
ExperimentalData

public abstract class ALDData
extends Object

This is the abstract class from which all data classes have to be derived which want properties to be recored when returned from an operator as result.

Each object of type ALDData holds properties like image type, resolution or specification of acquisition devices. There is one specific property with key "location" which is expected to contain a file name or in general URI to the persistant storage location. Applicable only if this data object was read from persistant storage and not created from scratch. Properties may change during the lifetime of a ALDData object.


Constructor Summary
ALDData()
          Create a data object.
 
Method Summary
 Hashtable<String,String> cloneProperties()
          Clone the property hash of this obejct.
 String getLocation()
          Get the location property, i.e. property with key location
 String getProperty(String key)
          Get a property value for the given key.
 Enumeration<String> getPropertyKeys()
          Get the keys of all properties set in this data object
 void print()
          Print this data object to standard out
 void setLocation(String location)
          Set the location property, i.e. property with key location
 void setProperty(String key, Object o)
          Set the property with key to new value o.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALDData

public ALDData()
Create a data object. Initializes the member varaiables as appropriate.

Method Detail

getPropertyKeys

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

Returns:
property keys

setProperty

public void setProperty(String key,
                        Object o)
Set the property with key to new value o. Set the property also for associated port, if it is a ALDDataPort.

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

getProperty

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

Parameters:
key - key of property to get

cloneProperties

public Hashtable<String,String> cloneProperties()
Clone the property hash of this obejct.

Returns:
cloned porperties

setLocation

public void setLocation(String location)
Set the location property, i.e. property with key location

Parameters:
location - new value of location property

getLocation

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


print

public void print()
Print this data object to standard out



Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.