public class IltSONETObjectState extends IltObjectState implements Cloneable
It uses the elements of the IltSONET state system, and also
the extension provided by the IltPerformance state system, the
IltSAN state system and the alarm model provided by
IltAlarm.
This class therefore contains four attributes:
IltSONET.State instance, IltSONET.Protection instances, IltPerformance.SecState and
IltSAN.SecState instances, IltAlarm.State instance. for the corresponding XML format| Modifier and Type | Field and Description |
|---|---|
static IltObjectStateInfo |
metainfo
Contains metainformation about this
IltObjectState class. |
| Constructor and Description |
|---|
IltSONETObjectState() |
IltSONETObjectState(IltSONET.State state)
Creates a new SONET object state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProtection(IltSONET.End end,
IltSONET.Protection state)
Adds a given protection from a given link end.
|
boolean |
clear(IltState state)
Removes a given constant state (defined in a state system) from
this state.
|
Object |
clone()
Returns a copy of this state object.
|
IltState |
getAlarmState()
Returns the alarms part of the state.
|
static IltSONET.State |
GetDefaultState()
Returns the default SONET state for a new object.
|
Vector |
getFromProtections()
All access to the vector should be through this method.
|
IltState |
getPrimaryState()
Returns the primary state present in this object state.
|
Enumeration |
getProtections(IltSONET.End end)
Returns the protections at a given link end.
|
IltSONET.State |
getState()
Returns the general part of the state.
|
Vector |
getToProtections()
All access to the vector should be through this method.
|
boolean |
has(IltState state)
Tests whether this state contains a given constant state (defined in
a state system).
|
boolean |
hasProtection(IltSONET.End end,
IltSONET.Protection state)
Tells whether a given link end has a given protection.
|
void |
removeAllProtections(IltSONET.End end)
Removes all protections set in the given end point
|
boolean |
removeProtection(IltSONET.End end,
IltSONET.Protection state)
Removes a given protection from a given link end.
|
void |
reset()
Resets all the state values for the telecom object.
|
boolean |
set(IltState state)
Adds a given constant state (defined in a state system) to this
state.
|
void |
setAlarmState(IltAlarm.State state)
Sets the alarm state instance.
|
static void |
SetDefaultState(IltSONET.State state)
Sets the default SONET state for a new object.
|
void |
setProtections(IltSONET.End end,
IltSONET.Protection[] newprotections)
Replaces the protections at a given link end.
|
void |
setState(IltSONET.State state)
Sets the general part of the state.
|
addObjectStateListener, attach, clear, detach, endChangingObjectState, equals, fireObjectStateChanged, fireObjectStateSet, get, get, getAggregate, getAggregate, getAlarmSystem, getAttributeValue, getBoolean, getBoolean, getFloat, getFloat, getInteger, getInteger, getListStrategy, getMapStrategy, getObjectStateInfo, getStateSystem, getStateValueTable, getSymbolic, getSymbolic, getTrapState, has, inverseStates, inverseValues, isValid, list, map, removeObjectStateListener, set, set, setAggregate, setAggregate, setAlarmSystem, setBoolean, setBoolean, setFloat, setFloat, setInteger, setInteger, setListStrategy, setMapStrategy, setStateSystem, setSymbolic, setSymbolic, severityAdded, severityRemoved, startChangingObjectState, stateAdded, stateRemoved, states, stateSystemAdded, stateSystemRemoved, valuespublic static IltObjectStateInfo metainfo
IltObjectState class.public IltSONETObjectState(IltSONET.State state)
state - The primary statepublic IltSONETObjectState()
public static IltSONET.State GetDefaultState()
public static void SetDefaultState(IltSONET.State state)
reset or a clear
using the primary state.public Vector getFromProtections()
public Vector getToProtections()
public Object clone()
clone in class IltObjectStatepublic IltSONET.State getState()
public void setState(IltSONET.State state)
public boolean hasProtection(IltSONET.End end, IltSONET.Protection state)
public void addProtection(IltSONET.End end, IltSONET.Protection state)
public boolean removeProtection(IltSONET.End end, IltSONET.Protection state)
true if the protection was present,
false otherwisepublic Enumeration getProtections(IltSONET.End end)
IltSONET.Protectionpublic void setProtections(IltSONET.End end, IltSONET.Protection[] newprotections)
public void removeAllProtections(IltSONET.End end)
public IltState getAlarmState()
getAlarmState in class IltObjectStatepublic void setAlarmState(IltAlarm.State state)
public boolean has(IltState state)
IltObjectStatehas in interface ilog.tgo.model.internal.IltStateValueCollectionhas in class IltObjectStatestate - State being tested.true when the given state is part of the collection.public boolean set(IltState state)
IltObjectStateset in class IltObjectStatepublic boolean clear(IltState state)
IltObjectStateclear in interface ilog.tgo.model.internal.IltStateValueCollectionclear in class IltObjectStatestate - State to be removed.true when the operation resulted in a modification of
the collection.public void reset()
IltObjectStatereset in class IltObjectStatepublic IltState getPrimaryState()
getPrimaryState in class IltObjectState© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.