|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.types.PHXReferenceArray
public class PHXReferenceArray
The Phoenix type for references. This class matches up to references in ModelCenter. Users may define their own properties in addition to the value property.
| Constructor Summary | |
|---|---|
PHXReferenceArray()
constructor |
|
| Method Summary | |
|---|---|
IPHXRefPropInfo |
createRefProp(java.lang.String name,
java.lang.String type)
adds a ref prop to the variable. |
boolean |
getAutoGrow()
retrieves the autoGrow value |
int |
getLength()
retrieves the number of references in the array |
PHXRefArrayProperty[] |
getProperties()
get-set function for AServer |
java.lang.String[] |
getReference()
retrieves the current reference string. |
java.lang.String |
getReference(int i)
|
boolean |
getRefPropValueBoolean(java.lang.String name,
int index)
|
double |
getRefPropValueDouble(java.lang.String name,
int index)
gets a value for a ref prop |
long |
getRefPropValueLong(java.lang.String name,
int index)
|
java.lang.String |
getRefPropValueString(java.lang.String name,
int index)
|
double[] |
getValues()
retrieves the current value of the variable |
void |
setAutoGrow(boolean flag)
sets the autoGrow value. |
void |
setLength(int v)
sets the number of references |
void |
setProperties(PHXRefArrayProperty[] p)
|
void |
setReference(int i,
java.lang.String ref)
|
void |
setReference(java.lang.String[] ref)
sets the value for the reference string. |
void |
setRefPropValue(java.lang.String name,
int index,
boolean value)
|
void |
setRefPropValue(java.lang.String name,
int index,
double value)
sets a value for a ref prop |
void |
setRefPropValue(java.lang.String name,
int index,
long value)
|
void |
setRefPropValue(java.lang.String name,
int index,
java.lang.String value)
|
void |
setValues(double[] v)
sets the value for the variable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PHXReferenceArray()
| Method Detail |
|---|
public PHXRefArrayProperty[] getProperties()
public void setProperties(PHXRefArrayProperty[] p)
public double[] getValues()
public void setValues(double[] v)
v - the valuepublic java.lang.String[] getReference()
public java.lang.String getReference(int i)
public void setReference(java.lang.String[] ref)
ref - the reference string
public void setReference(int i,
java.lang.String ref)
public int getLength()
public void setLength(int v)
v - the number of referencespublic boolean getAutoGrow()
public void setAutoGrow(boolean flag)
flag - true or false
public IPHXRefPropInfo createRefProp(java.lang.String name,
java.lang.String type)
name - the name of the propertytype - property type: "long", "double", "boolean", or "string"enumValues - a comma-separate list of enum values
public double getRefPropValueDouble(java.lang.String name,
int index)
throws PHXTypeMismatchException
name - the name of the propertyindex - the array element
PHXTypeMismatchException
public long getRefPropValueLong(java.lang.String name,
int index)
throws PHXTypeMismatchException
PHXTypeMismatchException
public boolean getRefPropValueBoolean(java.lang.String name,
int index)
throws PHXTypeMismatchException
PHXTypeMismatchException
public java.lang.String getRefPropValueString(java.lang.String name,
int index)
throws PHXTypeMismatchException
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
int index,
double value)
throws PHXTypeMismatchException
name - the name of the propertyindex - the array elementvalue - the value of the property
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
int index,
long value)
throws PHXTypeMismatchException
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
int index,
boolean value)
throws PHXTypeMismatchException
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
int index,
java.lang.String value)
throws PHXTypeMismatchException
PHXTypeMismatchException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||