|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJICSCore.StatusItemHelper
public class StatusItemHelper
This class contains methods which can be used to manipulate the IDL data type StatusItem. They are really convenience methods to facilitate the extraction of data which is held within the status items.
Constructor Summary | |
---|---|
StatusItemHelper()
|
Method Summary | |
---|---|
static void |
checkStatusItemInError(ing.status.StatusItemValue statusItem)
Checks to see if the status item which is provided is in error and if it is then it raises an exception to that effect. |
static java.lang.String |
convertAnyValueToString(org.omg.CORBA.Any ValueToConvert)
Can be used to convert the value which is contained in an Any to it's string representation. |
static ing.status.StatusItemValue[] |
createErrorStatusItem(java.lang.String[] NoticeboardItems,
OCSCORBAHelper OCSCorba,
java.lang.String[] StatusVariableNames,
int ErrorCode,
java.lang.String ErrorMessage)
Used to create an array of status items which are in error. |
static ing.status.StatusItemValue |
createErrorStatusItem(java.lang.String NoticeboardItem,
OCSCORBAHelper OCSCorba,
java.lang.String StatusVariableName,
int ErrorCode,
java.lang.String ErrorMessage)
Used to create a status item which is in error. |
static ing.status.StatusItemValue[] |
createNormalStatusItem(java.lang.String[] NoticeboardItem,
OCSCORBAHelper OCSCorba,
java.lang.String[] StatusVariableNames,
org.omg.CORBA.Any[] StatusValues)
Used to create an array of StatusItemValue and optionally write it into the parameter noticeboard. |
static ing.status.StatusItemValue |
createNormalStatusItem(java.lang.String NoticeboardItem,
OCSCORBAHelper OCSCorba,
java.lang.String StatusVariableName,
org.omg.CORBA.Any StatusValue)
Used to create a status item and optionally write it into the parameter noticeboard |
static boolean |
extractStatusValueBoolean(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
static double |
extractStatusValueDouble(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
static float |
extractStatusValueFloat(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
static int |
extractStatusValueInt(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
static int |
extractStatusValueLong(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
static short |
extractStatusValueShort(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
static java.lang.String |
extractStatusValueString(ing.status.StatusItemValue statusItem)
This will be used to extract the value from the status item which is supplied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatusItemHelper()
Method Detail |
---|
public static void checkStatusItemInError(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item to check.
BadStatusValueException
- In the case that the status item is actually bad.public static java.lang.String extractStatusValueString(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to have it's status item extracted.
BadStatusValueException
public static int extractStatusValueInt(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to be extracted.
BadStatusValueException
public static float extractStatusValueFloat(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to be extracted.
BadStatusValueException
public static boolean extractStatusValueBoolean(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to be extracted.
BadStatusValueException
public static double extractStatusValueDouble(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to be extracted.
BadStatusValueException
public static int extractStatusValueLong(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to be extracted.
BadStatusValueException
public static short extractStatusValueShort(ing.status.StatusItemValue statusItem) throws BadStatusValueException
statusItem
- This is the status item which is to be extracted.
BadStatusValueException
public static ing.status.StatusItemValue createErrorStatusItem(java.lang.String NoticeboardItem, OCSCORBAHelper OCSCorba, java.lang.String StatusVariableName, int ErrorCode, java.lang.String ErrorMessage) throws java.lang.Exception
NoticeboardItem
- This is the noticeboard item which into
which the value should be stored. If set to null then nothing
will be written to the noticeboard.OCSCorba
- This will be used to help out with CORBA related activities.StatusVariableName
- This is the name of the status itemErrorCode
- This is the code which is associated with the errorErrorMessage
- This is the error message which is
associated with the error
java.lang.Exception
public static ing.status.StatusItemValue[] createErrorStatusItem(java.lang.String[] NoticeboardItems, OCSCORBAHelper OCSCorba, java.lang.String[] StatusVariableNames, int ErrorCode, java.lang.String ErrorMessage) throws java.lang.Exception
NoticeboardItems
- An array of the noticeboard items which
into which the values should be stored. If set to null then
nothing will be written to the noticeboard.OCSCorba
- This will be used to help out with CORBA related activities.StatusVariableNames
- This is the name of the status itemsErrorCode
- This is the code which is associated with the errorErrorMessage
- This is the error message which is
associated with the error
java.lang.Exception
public static ing.status.StatusItemValue[] createNormalStatusItem(java.lang.String[] NoticeboardItem, OCSCORBAHelper OCSCorba, java.lang.String[] StatusVariableNames, org.omg.CORBA.Any[] StatusValues) throws java.lang.Exception
NoticeboardItem
- This is an of the noticeboard items
which need to be updated. If set to null then nothing will be
written to the noticeboard.
OCSCorba
- This will be used to help out with CORBA related activities.StatusVariableNames
- This is an array of the status item namesStatusValues
- This is an array of the status values
java.lang.Exception
public static ing.status.StatusItemValue createNormalStatusItem(java.lang.String NoticeboardItem, OCSCORBAHelper OCSCorba, java.lang.String StatusVariableName, org.omg.CORBA.Any StatusValue) throws java.lang.Exception
NoticeboardItem
- This is the noticeboard item which into
which the value should be stored. If set to null then nothing
will be written to the noticeboard.OCSCorba
- This will be used to help out with CORBA related activities.StatusVariableName
- This is the name of the status item
java.lang.Exception
public static java.lang.String convertAnyValueToString(org.omg.CORBA.Any ValueToConvert) throws UnableToConvertAnyValue, StatusItemInErrorException
ValueToConvert
- An Any value which contains the value
which is to be converted.
UnableToConvertAnyValue
- If the Any value cannot be converted to a string
StatusItemInErrorException
- If the value which is
contained with the Any value is a StatusItemValue which is in
the error state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |