public class IltBiSONETObjectState extends IltSONETObjectState implements Cloneable
IltBiSONETObjectState
instances store the state of telecom
objects that follow the SONET dictionary modeled by the IltSONET
state system.
It is particularly suitable for links which have one state for each
direction of traffic. They also use the alarm model provided by the
IltAlarm
state system.
The IltBiSONETObjectState
class therefore holds
five attributes:
IltSONET.State
instances, one for the direct
(from-to-to direction) state and one for the
reverse (to-to-from direction) state,IltSONET.Protection
instance,IltAlarm.State
instance.The direct SONET state is considered the main state of the object.
Therefore, it is the state accessed by the inherited generic methods
set
, get
, and has
as well as
getState
and setState
. To change the reverse state,
two new methods are provided: getReverseState
and
setReverseState
.
The graphical representation of links with this object state
is computed as follows:
for the corresponding XML format
Modifier and Type | Field and Description |
---|---|
static IltObjectStateInfo |
metainfo
Contains metainformation about this
IltObjectState class. |
Constructor and Description |
---|
IltBiSONETObjectState()
Creates an instance
IltBiSONETObjectState with the default
values. |
IltBiSONETObjectState(IltSONET.State state,
IltSONET.State reverseState)
Creates an instance of
IltBiSONETObjectState with the given
SONET states. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a copy of this
IltBiSONETObjectState instance. |
static IltSONET.State |
GetDefaultReverseState()
Returns the default BiSONET reverse state for a new object.
|
IltSONET.State |
getReverseState()
Returns the SONET reverse state of the telecom object.
|
void |
reset()
Resets this object state.
|
static void |
SetDefaultReverseState(IltSONET.State state)
Sets the default BiSONET reverse state for a new object.
|
void |
setReverseState(IltSONET.State reverseState)
Sets the SONET reverse state of the telecom object to
reverseState . |
addProtection, clear, getAlarmState, GetDefaultState, getFromProtections, getPrimaryState, getProtections, getState, getToProtections, has, hasProtection, removeAllProtections, removeProtection, set, setAlarmState, SetDefaultState, setProtections, setState
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, values
public static IltObjectStateInfo metainfo
IltObjectState
class.public IltBiSONETObjectState(IltSONET.State state, IltSONET.State reverseState)
IltBiSONETObjectState
with the given
SONET states.
The following values are used:
an IltAlarm.State
instance initialized with its
default values, that is, no alarms.state
- SONET state for the direct state of the link.reverseState
- SONET state for the reverse state of the link.public IltBiSONETObjectState()
IltBiSONETObjectState
with the default
values.
The following values are used:
IltSONETObjectState.DefaultState
(in the default
implementation, this value is
IltSONET.State.Inactive
), DefaultReverseState
(in the default
implementation, this value is
IltSONET.State.Inactive
), IltAlarm.State
instance initialized with its
default values, that is, no alarms. public static IltSONET.State GetDefaultReverseState()
public static void SetDefaultReverseState(IltSONET.State state)
reset
or a clear
using the primary state.public Object clone()
IltBiSONETObjectState
instance.clone
in class IltSONETObjectState
public IltSONET.State getReverseState()
public void setReverseState(IltSONET.State reverseState)
reverseState
.public void reset()
reset
in class IltSONETObjectState
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.