public class IltBellcoreObjectState extends IltObjectState implements Cloneable
It uses the elements of the IltBellcore state system, and
also the extension provided by the IltMisc state system, the
IltPerformance state system, the IltSAN state
system and the alarm model provided by IltAlarm.
This class therefore contains three attributes:
IltBellcore.State instance, IltBellcore.SecState instances,
IltMisc.SecState instances,
IltPerformance.SecState instances or
IltSAN 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 |
|---|
IltBellcoreObjectState()
Creates a new
IltBellcoreObjectState with the Bellcore state
initialized to DefaultState, no secondary states and
no alarms. |
IltBellcoreObjectState(IltBellcore.State state)
Creates a new
IltBellcoreObjectState with the given
Bellcore state, no secondary states and no alarms. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSecState(IltState state)
Adds a given state to the list of secondary states.
|
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 IltBellcore.State |
GetDefaultState()
Returns the default Bellcore state for a new object.
|
IltState |
getPrimaryState()
Returns the primary state present in this object state.
|
Enumeration |
getSecStates()
Returns an enumeration of the secondary states.
|
IltBellcore.State |
getState()
Returns the Bellcore state of the telecom object.
|
boolean |
has(IltState state)
Tests whether this state contains a given constant state (defined in
a state system).
|
boolean |
hasSecState(IltState state)
Tests whether a given state is among the secondary states listed.
|
void |
removeAllSecStates()
Removes all secondary states currently set in this object state.
|
boolean |
removeSecState(IltState state)
Removes a given state from the list of secondary states.
|
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(IltBellcore.State state)
Sets the default Bellcore state for a new object.
|
void |
setSecStates(Enumeration states)
Replaces the list of secondary states with the contents of a given
enumeration.
|
void |
setState(IltBellcore.State state)
Sets the Bellcore state of the telecom object.
|
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 IltBellcoreObjectState(IltBellcore.State state)
IltBellcoreObjectState with the given
Bellcore state, no secondary states and no alarms.public IltBellcoreObjectState()
IltBellcoreObjectState with the Bellcore state
initialized to DefaultState, no secondary states and
no alarms.public static IltBellcore.State GetDefaultState()
public static void SetDefaultState(IltBellcore.State state)
reset or a clear
using the primary state.public Object clone()
clone in class IltObjectStatepublic IltBellcore.State getState()
public void setState(IltBellcore.State state)
public boolean hasSecState(IltState state)
public boolean addSecState(IltState state)
true if the state was already among the
secondary states.public boolean removeSecState(IltState state)
true if the state was among the secondary states.public void removeAllSecStates()
public Enumeration getSecStates()
IltStatepublic void setSecStates(Enumeration states)
states - an enumeration of IltStatepublic 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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.