|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.types.PHXSimpleType
com.phoenix_int.aserver.types.PHXSimpleArray
com.phoenix_int.aserver.types.PHXLongArray
public class PHXLongArray
Class wraps an array of PHXLong variables for the ScriptWrapper utility.
PHXSimpleArray| Field Summary |
|---|
| Fields inherited from class com.phoenix_int.aserver.types.PHXSimpleArray |
|---|
_data, _lockDims, _lockResize |
| Constructor Summary | |
|---|---|
PHXLongArray()
|
|
PHXLongArray(java.lang.Object data)
|
|
| Method Summary | |
|---|---|
protected void |
_getMetaData(PHXSimpleType v2)
Worker which takes the meta data from an instance of PHXSimpleType and sets it into our meta data. |
protected void |
_setMetaData(PHXSimpleType v2)
Sets a simple type's meta data based on the meta data in this object. |
void |
_sort(PHXLongArray array,
boolean ascend)
|
protected java.lang.Object |
allocateElement(java.lang.Class elementClass)
Allocates a single element in a default state. |
protected boolean |
dataTypeOK(java.lang.Class c)
Must override this function and return true if the specified class is acceptable as an array element component type. |
protected java.lang.Object |
elementFromString(java.lang.String val)
Sub-classes must provide an implementation of this function which converts a string form of a single element to Object form. |
double |
getAvg()
|
java.lang.String[] |
getEnumAliases()
An interface function for the enumeration array |
java.lang.String |
getEnumAliasesStr()
An interface function for the enumeration array |
long[] |
getEnumValues()
An interface function for the enumeration array |
java.lang.String |
getEnumValuesStr()
Interface function to pass out the enumeration array as a comma separated string |
java.lang.String |
getFormat()
Get the format string for the variable |
boolean |
getHasLowerBound()
retrieves the hasLowerBound flag |
boolean |
getHasUpperBound()
retrieves the hasUpperBound flag |
long |
getLongValue(int index)
Gets the value of an element as a long |
long |
getLongValue(int[] index)
Gets the value of an element as a long |
long |
getLowerBound()
retrieves the current lower bound value |
long |
getMax()
|
long |
getMin()
|
long |
getUpperBound()
retrieves the current upper bound value |
PHXLong |
getValue(int index)
Gets the value of an element as a PHXLong object |
PHXLong |
getValue(int[] index)
Gets the value of an element as a PHXLong object |
boolean |
hasFormat()
Whether or not the variable has a format |
void |
setEnumAliases(java.lang.String values)
takes a comma seperated string of values and fills the enumeration aliases list with values. |
void |
setEnumAliases(java.lang.String[] values)
Sets the enumeration aliases list |
void |
setEnumValues(long[] values)
sets the possible values a variable may be |
void |
setEnumValues(java.lang.String values)
takes a comma seperated string of values and fills the enumeration List with values. |
void |
setFormat(java.lang.String format)
Set the format string for the variable |
void |
setHasLowerBound(boolean value)
sets the hasLowerBound flag |
void |
setHasUpperBound(boolean value)
sets the hasUpperBound flag |
void |
setLowerBound(long value)
sets the lower bound. |
void |
setUpperBound(long value)
sets the upper bound. |
void |
setValue(int[] index,
long val)
Sets the value of an element as a PHXLong object |
void |
setValue(int[] index,
PHXLong val)
Sets the value of an element as a PHXLong object |
void |
setValue(int index,
long val)
Sets the value of an element as a PHXLong object |
void |
setValue(int index,
PHXLong val)
Sets the value of an element as a PHXLong object |
void |
sort()
|
void |
sortReverse()
|
| Methods inherited from class com.phoenix_int.aserver.types.PHXSimpleArray |
|---|
_getMetaData, _setMetaData, checkRectangular, fromString, fromString, fromString, fromString, fromString2, generateFor, generateFor, getArray, getArrayElement, getArrayElement, getComponentType, getComponentType, getDimensions, getDimensions, getFirst, getLength, getLength, getLockResize, getnDIndex, getNumDimensions, getNumDimensions, getSelf, incrementIndex, lockDimensions, newIndex, parseIndex, resize, setArray, setArrayElement, setArrayElement, setDimensions, setFirst, setLength, setLength, setLockResize, toString, toString, toString, toString, toString2, toString2, toString2, validElement |
| Methods inherited from class com.phoenix_int.aserver.types.PHXSimpleType |
|---|
addPropertyChangeListener, getDescription, getEnumTokens, getHasChanged, getUnits, removePropertyChangeListener, setDescription, setHasChanged, setUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PHXLongArray()
public PHXLongArray(java.lang.Object data)
| Method Detail |
|---|
protected boolean dataTypeOK(java.lang.Class c)
PHXSimpleArray
dataTypeOK in class PHXSimpleArray
protected java.lang.Object allocateElement(java.lang.Class elementClass)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
PHXSimpleArray
allocateElement in class PHXSimpleArrayjava.lang.IllegalAccessException
java.lang.InstantiationExceptionpublic void setUpperBound(long value)
value - the upper boundpublic long getUpperBound()
java.lang.IllegalStateException - Thrown if
there is no upper bound defined.public void setLowerBound(long value)
value - the lower boundpublic long getLowerBound()
public void setHasUpperBound(boolean value)
value - true or falsepublic boolean getHasUpperBound()
public void setHasLowerBound(boolean value)
value - true or falsepublic boolean getHasLowerBound()
public void setEnumValues(java.lang.String values)
values - A comma seperrated string of enumeration valuespublic void setEnumValues(long[] values)
values - Array of longs which represents valid valuespublic long[] getEnumValues()
public java.lang.String getEnumValuesStr()
public void setEnumAliases(java.lang.String values)
values - A comma seperated string of enumeration aliasespublic void setEnumAliases(java.lang.String[] values)
values - An array of stringspublic java.lang.String[] getEnumAliases()
public java.lang.String getEnumAliasesStr()
public void setFormat(java.lang.String format)
setFormat in interface IPHXFormatformat - format stringpublic java.lang.String getFormat()
getFormat in interface IPHXFormatpublic boolean hasFormat()
IPHXFormat
hasFormat in interface IPHXFormatprotected void _setMetaData(PHXSimpleType v2)
PHXSimpleArray
_setMetaData in class PHXSimpleArrayprotected void _getMetaData(PHXSimpleType v2)
PHXSimpleArray
_getMetaData in class PHXSimpleArraypublic PHXLong getValue(int index)
index - 1D array index
java.lang.IllegalArgumentException - thrown if called on non-1D arraypublic PHXLong getValue(int[] index)
index - nD array index
public long getLongValue(int index)
index - 1D array index
java.lang.IllegalArgumentException - thrown if called on non-1D arraypublic long getLongValue(int[] index)
index - 1D array index
java.lang.IllegalArgumentException - thrown if called on non-1D array
public void setValue(int index,
PHXLong val)
index - 1D array indexval - value to set
java.lang.IllegalArgumentException - thrown if called on non-1D array
public void setValue(int[] index,
PHXLong val)
index - 1D array indexval - value to set
java.lang.IllegalArgumentException - thrown if called on non-1D array
public void setValue(int index,
long val)
index - 1D array indexval - value to set
java.lang.IllegalArgumentException - thrown if called on non-1D array
public void setValue(int[] index,
long val)
index - 1D array indexval - value to set
java.lang.IllegalArgumentException - thrown if called on non-1D arrayprotected java.lang.Object elementFromString(java.lang.String val)
PHXSimpleArray
elementFromString in class PHXSimpleArraypublic long getMax()
public long getMin()
public double getAvg()
public void sortReverse()
public void sort()
public void _sort(PHXLongArray array,
boolean ascend)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||