| Getting Started > Tutorial: Getting Started with ILOG JViews TGO > Updating Existing Objects |
Updating Existing Objects |
INDEX
PREVIOUS
NEXT
|
This section shows you how to read in a file containing data for updating and removing objects. It also shows you how to update objects through the API.
The data for this part of the tutorial is in the file:
<installdir>/tutorials/gettingStarted/data/updates.xml
This part of the code is referred to as Step 6.
void step6() throws Exception{
elements.xml. The object to be updated is identified by its identifier. Then, the attribute to be updated is identified and the new values are given.
Enabled, Idle, and Locked of specific OSI states are created for this object through inner classes of IltOSI.State. The value Enabled is attributed to IltOSI.State.Operational. The value Idle is attributed to IltOSI.State.Usage. The value Locked is attributed to IltOSI.State.Administrative.
IltOSIObjectState. An instance of this class represents the state of a telecom object as defined by the OSI SMF 10164-2 standard.
objectState using getAlarmState(). The method alarmState.addNewAlarm allows you to add an unacknowledged alarm with the severity Minor. The method alarmState.addAcknowledgedAlarm allows you to add an acknowledged alarm with the severity Critical.
objectState with its possible alarms to the object london. The data source and its attached graphic components are automatically notified of this change.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |