IltOSIObjectState osiObjectState =
(IltOSIObjectState)neast.getObjectState();
IltOSI.State osiState = osiObjectState.getState();
osiState.getOperationalState();
osiState.getUsageState();
osiState.getAdministrativeState();
When primary or secondary states are added, the same functional
interface is used, but with different consequences. The primary
state is unique (in the OSI state system, it is a triplet; in the
Bellcore state system, it is a single value), as opposed to
secondary states (for example, the values associated with the
Misc dictionary can be added without limitation). Consequently,
when the member function
setState
is used, this function replaces the
primary state, although it adds one more secondary state. There
are two ways to remove states created in this way:
You can use the
clearState
member function, which removes secondary states or resets the primary state to its
default value.
You can use the
resetState
member function, which removes all the secondary states and resets the primary state to its
default value.