cartago
Class ArtifactObsProperty

java.lang.Object
  extended by cartago.ArtifactObsProperty
All Implemented Interfaces:
java.io.Serializable

public class ArtifactObsProperty
extends java.lang.Object
implements java.io.Serializable

Class representing an artifact observable property to be used on the agent side, retrieved by the bridge.

Author:
aricci
See Also:
Serialized Form

Constructor Summary
ArtifactObsProperty(java.lang.String fullId, long id, java.lang.String name, java.lang.Object... values)
           
 
Method Summary
 boolean booleanValue()
          Get the index-0 value of type boolean of the property
 boolean booleanValue(int index)
          Get a value of type boolean of the property
 char charValue()
          Get the index-0 value of type char of the property
 char charValue(int index)
          Get a value of type char of the property
 double doubleValue(int index)
          Get a value of type double of the property
 double doubleValues()
          Get the index-0 value of type double of the property
 float floatValue()
          Get the index-0 value of type float of the property
 float floatValue(int index)
          Get a value of type float of the property
 java.lang.String getFullId()
          Get the full id of the property
 long getId()
          Get the id of the property
 java.lang.String getName()
          Get the name of the property
 java.lang.Object getValue()
          Get the index-0 value
 java.lang.Object getValue(int index)
          Get a value of the property
 java.lang.Object[] getValues()
          Get the array of values
 int intValue()
          Get the index-0 value of type int of the property
 int intValue(int index)
          Get a value of type int of the property
 long longValue()
          Get the index-0 value of type long of the property
 long longValue(int index)
          Get a value of type long of the property
 boolean match(java.lang.String nam, java.lang.Object... v)
           
 java.lang.String stringValue()
          Get the index-0 value of type string of the property
 java.lang.String stringValue(int index)
          Get a value of type string of the property
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactObsProperty

public ArtifactObsProperty(java.lang.String fullId,
                           long id,
                           java.lang.String name,
                           java.lang.Object... values)
Method Detail

getId

public long getId()
Get the id of the property


getFullId

public java.lang.String getFullId()
Get the full id of the property

Returns:

getName

public java.lang.String getName()
Get the name of the property

Returns:

getValue

public java.lang.Object getValue(int index)
Get a value of the property

Parameters:
index - index of the value
Returns:

getValues

public java.lang.Object[] getValues()
Get the array of values

Returns:

intValue

public int intValue(int index)
Get a value of type int of the property

Parameters:
index - index of the value
Returns:

doubleValue

public double doubleValue(int index)
Get a value of type double of the property

Parameters:
index - index of the value
Returns:

stringValue

public java.lang.String stringValue(int index)
Get a value of type string of the property

Parameters:
index - index of the value
Returns:

booleanValue

public boolean booleanValue(int index)
Get a value of type boolean of the property

Parameters:
index - index of the value
Returns:

floatValue

public float floatValue(int index)
Get a value of type float of the property

Parameters:
index - index of the value
Returns:

longValue

public long longValue(int index)
Get a value of type long of the property

Parameters:
index - index of the value
Returns:

charValue

public char charValue(int index)
Get a value of type char of the property

Parameters:
index - index of the value
Returns:

intValue

public int intValue()
Get the index-0 value of type int of the property

Parameters:
index - index of the value
Returns:

doubleValues

public double doubleValues()
Get the index-0 value of type double of the property

Parameters:
index - index of the value
Returns:

stringValue

public java.lang.String stringValue()
Get the index-0 value of type string of the property

Parameters:
index - index of the value
Returns:

booleanValue

public boolean booleanValue()
Get the index-0 value of type boolean of the property

Parameters:
index - index of the value
Returns:

floatValue

public float floatValue()
Get the index-0 value of type float of the property

Parameters:
index - index of the value
Returns:

longValue

public long longValue()
Get the index-0 value of type long of the property

Parameters:
index - index of the value
Returns:

charValue

public char charValue()
Get the index-0 value of type char of the property

Parameters:
index - index of the value
Returns:

getValue

public java.lang.Object getValue()
Get the index-0 value

Parameters:
value -

match

public boolean match(java.lang.String nam,
                     java.lang.Object... v)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


>DEIS - University of Bologna