|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.model.IltObjectState
ilog.tgo.model.IltSONETObjectState
public class IltSONETObjectState
An instance of this class is the state of some telecom object, as defined by the SONET standard.
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| Field Summary | |
|---|---|
static IltObjectStateInfo |
metainfo
Contains metainformation about this IltObjectState class. |
| Fields inherited from interface ilog.cpl.model.internal.IlpCompositeAttributeValue |
|---|
ATTRIBUTE_NAME_DELIMITER |
| Constructor Summary | |
|---|---|
IltSONETObjectState()
|
|
IltSONETObjectState(IltSONET.State state)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static IltObjectStateInfo metainfo
IltObjectState class.
| Constructor Detail |
|---|
public IltSONETObjectState(IltSONET.State state)
public IltSONETObjectState()
| Method Detail |
|---|
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.Protection
public 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)
IltObjectState
has 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)
IltObjectState
set in class IltObjectStatepublic boolean clear(IltState state)
IltObjectState
clear 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()
IltObjectState
reset in class IltObjectStatepublic IltState getPrimaryState()
getPrimaryState in class IltObjectState
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||