| | | | Browse by category |
Question
Why do I get an IltInvalidStateException when I call IltNetworkElement.setState(IltState state) ?
Answer
If you get an IltInvalidStateException, it means that the state model used (OSI, Bellcore, SNMP, SONET...) has been violated.
For example, given the following code segment:
IltNetworkElement ne = new IltNetworkElement("NE",IltNetworkElement.Type.NE,new IltOSIObjectState());
Suppose you call:
IltNetworkElement.setState(IltOSI.State.Administrative.ShuttingDown);
You are trying to create the following combination of states:
IltOSI.State.Operational.Enabled | (default in IltOSIObjectState) |
IltOSI.State.Usage.Idle | (default in IltOSIObjectState) |
IltOSI.State.Administrative.ShuttingDown | (you set it) |
This combination is not allowed by the OSI state model as specified in the following section of the ILOG JTGO Documentation:
Here is missing a link :
text : IBM ILOG JViews TGO V8.8 > Programmers documentation > Business objects and data sources > States > The OSI state dictionary
url :http://pic.dhe.ibm.com/infocenter/jviewtgo/v8r8/topic/com.ibm.ilog.jviews.tgo.doc/Content/Visualization/Documentation/JViews/JViews_TGO/_pubskel/ps_usrds242.html
This section lists the eight state scenarios that are allowed. As you will notice, the above state is not one of the allowed states. This
explains the exception.
Please read thoroughly the equivalent sections about the other state dictionaries for more information on the legal states of each state model.