|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValueVector
GaugeValueVector provides vector operations using GaugeValue as element data store.
Constructor Summary | |
GaugeValueVector()
|
Method Summary | |
void |
addElement(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValue sp)
Add an existing GaugeValue object into the vector |
void |
addElement(java.lang.String name,
java.lang.String property,
java.lang.String value)
Create new gauge value record and add to the vector. |
void |
copyInto(GaugeValueVector gvv)
Copy the elements from this into gvv |
edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValue |
elementAt(int index)
Returns a GaugeValue at a given index |
java.lang.String |
getProperty(java.lang.String name)
Retrieve the name of the proprety that associates with the value. |
java.lang.String |
getValue(java.lang.String name)
Retrieve the value represented as String given its value name |
boolean |
isEmpty()
Returns whether the vector is empty |
java.lang.String |
nameAt(int index)
Retrieve the name of the gauge value at given index |
java.lang.String |
propertyAt(int index)
Retrieve the name of property that associates with the gauge value |
void |
removeAllElements()
Remove all object in the vector. |
void |
removeElementAt(int index)
Remove the GaugaValue object at the given index |
int |
size()
Returns the number of elements in this vector |
java.lang.String |
toString()
Convert the vector into a string so that it can be printed |
java.lang.String |
valueAt(int index)
Retrieve the value of the gauge value at given index |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GaugeValueVector()
Method Detail |
public int size()
public boolean isEmpty()
public void addElement(java.lang.String name, java.lang.String property, java.lang.String value)
name
- the name of the new gauge valueproperty
- the property name that the gauge value will
associate withvalue
- the actual value represented as Stringpublic void addElement(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValue sp)
sp
- The GaugeValue to be addedpublic edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValue elementAt(int index)
index
- the index of the object to be retrievedpublic void removeElementAt(int index)
index
- the index of the object to be removedpublic void removeAllElements()
public java.lang.String nameAt(int index)
index
- the index of the objectpublic java.lang.String valueAt(int index)
index
- the index of the objectpublic java.lang.String propertyAt(int index)
index
- the index of the objectpublic java.lang.String getValue(java.lang.String name)
name
- the name of the gauge valuepublic java.lang.String getProperty(java.lang.String name)
name
- the name of the gauge valuepublic void copyInto(GaugeValueVector gvv)
gvv
- the GaugeValueVector to copy intopublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |