ilog.tgo.model
Class IltTrapObjectState

java.lang.Object
  extended by ilog.tgo.model.IltObjectState
      extended by ilog.tgo.model.IltTrapObjectState
All Implemented Interfaces:
ilog.cpl.model.internal.IlpCompositeAttributeValue, ilog.tgo.model.internal.IltStatePathValueCollection, ilog.tgo.model.internal.IltStateValueChangeNotifier, ilog.tgo.model.internal.IltStateValueCollection, ilog.tgo.model.internal.IltTypedStatePathValueCollection, ilog.tgo.model.internal.IltTypedStateValueCollection, ilog.tgo.model.state.event.IltAlarmSystemListener, ilog.tgo.model.state.event.IltStateSystemListener, Cloneable, EventListener

public class IltTrapObjectState
extends IltObjectState
implements Cloneable

An instance of this class is the state of some telecom object, which can be described through traps only.

It uses the alarm system provided by the IltTrap state system.

This class therefore contains one attribute:

See Also:
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
IltTrapObjectState()
          Creates a new IltTrapObjectState with no alarms.
 
Method Summary
 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.
 IltState getTrapState()
          Returns the traps part of the state.
 boolean has(IltState state)
          Tests whether this state contains a given constant state (defined in a state system).
static void InitStrategies()
          Sets the map and list strategies to their default values.
 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 setTrapState(IltTrap.State state)
          Sets the trap state instance.
 
Methods inherited from class ilog.tgo.model.IltObjectState
addObjectStateListener, attach, clear, detach, endChangingObjectState, equals, fireObjectStateChanged, fireObjectStateSet, get, get, getAggregate, getAggregate, getAlarmSystem, getAttributeValue, getBoolean, getBoolean, getFloat, getFloat, getInteger, getInteger, getListStrategy, getMapStrategy, getObjectStateInfo, getPrimaryState, getStateSystem, getStateValueTable, getSymbolic, getSymbolic, 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
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metainfo

public static IltObjectStateInfo metainfo
Contains metainformation about this IltObjectState class.

Internal method or field: do not use!
Constructor Detail

IltTrapObjectState

public IltTrapObjectState()
Creates a new IltTrapObjectState with no alarms.

Method Detail

clone

public Object clone()
Returns a copy of this state object.

Overrides:
clone in class IltObjectState

getAlarmState

public IltState getAlarmState()
Returns the alarms part of the state.

Overrides:
getAlarmState in class IltObjectState
Returns:
null

getTrapState

public IltState getTrapState()
Returns the traps part of the state.

Overrides:
getTrapState in class IltObjectState
Returns:
an IltTrap.State

setTrapState

public void setTrapState(IltTrap.State state)
Sets the trap state instance.

Internal method or field: do not use!

has

public boolean has(IltState state)
Description copied from class: IltObjectState
Tests whether this state contains a given constant state (defined in a state system).

Specified by:
has in interface ilog.tgo.model.internal.IltStateValueCollection
Overrides:
has in class IltObjectState
Parameters:
state - State being tested.
Returns:
true when the given state is part of the collection.

set

public boolean set(IltState state)
Description copied from class: IltObjectState
Adds a given constant state (defined in a state system) to this state.

Overrides:
set in class IltObjectState

clear

public boolean clear(IltState state)
Description copied from class: IltObjectState
Removes a given constant state (defined in a state system) from this state.

Specified by:
clear in interface ilog.tgo.model.internal.IltStateValueCollection
Overrides:
clear in class IltObjectState
Parameters:
state - State to be removed.
Returns:
true when the operation resulted in a modification of the collection.

reset

public void reset()
Description copied from class: IltObjectState
Resets all the state values for the telecom object. When applicable, the state values are set to their default values.

Overrides:
reset in class IltObjectState

InitStrategies

public static void InitStrategies()
Sets the map and list strategies to their default values.

Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.