org.deckfour.xes.model.impl
Class XAttributeContinuousImpl

java.lang.Object
  extended by org.deckfour.xes.model.impl.XAttributeImpl
      extended by org.deckfour.xes.model.impl.XAttributeContinuousImpl
All Implemented Interfaces:
Cloneable, Comparable<XAttribute>, XAttributable, XAttribute, XAttributeContinuous

public class XAttributeContinuousImpl
extends XAttributeImpl
implements XAttributeContinuous

This class implements continuous type attributes.

Author:
Christian W. Guenther (christian@deckfour.org)

Constructor Summary
XAttributeContinuousImpl(String key, double value)
          Creates a new instance.
XAttributeContinuousImpl(String key, double value, XExtension extension)
          Creates a new instance.
 
Method Summary
 Object clone()
          Attributes must be cloneable.
 double getValue()
          Retrieves the continuous value of this attribute.
 void setValue(double value)
          Assigns the continuous value of this attribute.
 String toString()
           
 
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
compareTo, equals, getAttributes, getExtension, getExtensions, getKey, hashCode, setAttributes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deckfour.xes.model.XAttribute
getExtension, getKey
 
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, setAttributes
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

XAttributeContinuousImpl

public XAttributeContinuousImpl(String key,
                                double value)
Creates a new instance.

Parameters:
key - The key of the attribute.
value - Value of the attribute.

XAttributeContinuousImpl

public XAttributeContinuousImpl(String key,
                                double value,
                                XExtension extension)
Creates a new instance.

Parameters:
key - The key of the attribute.
value - Value of the attribute.
extension - The extension of the attribute.
Method Detail

getValue

public double getValue()
Description copied from interface: XAttributeContinuous
Retrieves the continuous value of this attribute.

Specified by:
getValue in interface XAttributeContinuous
Returns:
Value of this attribute.

setValue

public void setValue(double value)
Description copied from interface: XAttributeContinuous
Assigns the continuous value of this attribute.

Specified by:
setValue in interface XAttributeContinuous
Parameters:
value - Value of the attribute.

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Description copied from interface: XAttribute
Attributes must be cloneable.

Specified by:
clone in interface XAttribute
Overrides:
clone in class XAttributeImpl
Returns:
A clone of this attribute.