ilog.tgo.model
Class IltObjectState

java.lang.Object
  extended by ilog.tgo.model.IltObjectState
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
Direct Known Subclasses:
IltAlarmObjectState, IltBellcoreObjectState, IltOSIObjectState, IltSNMPObjectState, IltSONETObjectState, IltTrapObjectState

public class IltObjectState
extends Object
implements ilog.tgo.model.state.event.IltStateSystemListener, ilog.tgo.model.state.event.IltAlarmSystemListener, ilog.tgo.model.internal.IltTypedStateValueCollection, ilog.tgo.model.internal.IltTypedStatePathValueCollection, ilog.tgo.model.internal.IltStateValueChangeNotifier, ilog.cpl.model.internal.IlpCompositeAttributeValue, Cloneable

This class models the state of an IltObject.

The actual values that can be stored in subclasses of IltObjectState are instances of IltState.

When you create a subclass of IltObjectState, you have to statically allocate a new IltObjectStateInfo instance to it; by convention, this is assigned to a variable called metainfo.

See Also:
IltObject

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
protected IltObjectState()
          Creates an IltObjectState.
  IltObjectState(IltStateSystem states, IltAlarmSystem alarms)
          Constructor based in a state system
 
Method Summary
 void addObjectStateListener(ilog.tgo.model.state.event.IltObjectStateListener listener)
          Adds a new listener to an object state.
 void attach(IltObject obj)
          Attaches this object state to a given business object.
 boolean clear(IltState state)
          Removes a given constant state (defined in a state system) from this state.
 boolean clear(ilog.tgo.model.internal.IltStatePath path)
          Clear the value of a state
 Object clone()
          Returns a copy of this state object.
 void detach(IltObject obj)
          Detaches this object state from a given business object.
 void endChangingObjectState()
          This method is called to indicate the end of changes in this object state.
 boolean equals(Object obj)
          Compares this object with another object.
protected  void fireObjectStateChanged()
          Notifies that the object state has changed.
 void fireObjectStateSet(ilog.tgo.model.internal.IltStatePath path, Object value)
          Notifies the registered listeners that the value of a state has changed.
 Object get(IltState state)
          Returns the current value of a state.
 Object get(ilog.tgo.model.internal.IltStatePath path)
          Returns the current value of a state
 ilog.tgo.model.internal.IltAggregateStateValue getAggregate(ilog.tgo.model.internal.IltAggregateState state)
          Returns the current value of a state
 ilog.tgo.model.internal.IltAggregateStateValue getAggregate(ilog.tgo.model.internal.IltStatePath path)
          Returns the current value of a state
 IltState getAlarmState()
          Returns the alarm part of the state.
 IltAlarmSystem getAlarmSystem()
          Returns the Alarm System used by this instance.
 Object getAttributeValue(String name)
          Retrieves the value of an attribute of this object according to the given name.
 boolean getBoolean(IltBooleanState state)
          Returns the current value of a state
 boolean getBoolean(ilog.tgo.model.internal.IltStatePath path)
          Returns the current value of a state
 float getFloat(IltNumericState state)
          Returns the current value of a state
 float getFloat(ilog.tgo.model.internal.IltStatePath path)
          Returns the current value of a state
 int getInteger(IltNumericState state)
          Returns the current value of a state
 int getInteger(ilog.tgo.model.internal.IltStatePath path)
          Returns the current value of a state
 ilog.tgo.mapper.state.IltListStateStrategy getListStrategy()
          Returns the strategy used to list the states.
 ilog.tgo.mapper.state.IltMapStateStrategy getMapStrategy()
          Returns the strategy used to map the state to their graphical representation.
 IltObjectStateInfo getObjectStateInfo()
          Returns the IltObjectStateInfo describing the class of this object.
 IltState getPrimaryState()
          Returns the primary state present in this object state.
 IltStateSystem getStateSystem()
          Returns the state system used by this instance.
protected  ilog.tgo.model.internal.IltStateValueTable getStateValueTable()
          Returns the table which stores the states and values.
 IltSymbolicStateValue getSymbolic(ilog.tgo.model.internal.IltStatePath path)
          Returns the current value of a state
 IltSymbolicStateValue getSymbolic(IltSymbolicState state)
          Returns the current value of a state
 IltState getTrapState()
          Returns the trap part of the state.
 boolean has(IltState state)
          Tests whether this state contains a given constant state (defined in a state system).
 boolean has(ilog.tgo.model.internal.IltStatePath path)
          Verifies if the given state is set.
 Enumeration inverseStates()
          Returns an enumeration of the states in this dictionary - from back to front.
 Enumeration inverseValues()
          Returns an enumeration of the values in this dictionary - from back to front.
 boolean isValid()
          Deprecated. There are no longer invalid state combinations
 void list(IltStateListing listing)
          Deprecated.  
 void map(IltObject object, IltCompositeGraphic graphic)
          Maps an entire IltObjectState.
 void removeObjectStateListener(ilog.tgo.model.state.event.IltObjectStateListener listener)
          Removes a listener from a object state.
 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.
 boolean set(IltState state, Object value)
          Adds a given constant state (defined in a state system) to this state.
 boolean set(ilog.tgo.model.internal.IltStatePath path, Object value)
          Sets the value of a state.
 boolean setAggregate(ilog.tgo.model.internal.IltAggregateState state, ilog.tgo.model.internal.IltAggregateStateValue value)
          Sets the value of the aggregate state
 boolean setAggregate(ilog.tgo.model.internal.IltStatePath path, ilog.tgo.model.internal.IltAggregateStateValue value)
          Returns the current value of a state
protected  void setAlarmSystem(IltAlarmSystem system)
          Sets the alarm system being used by this instance.
 boolean setBoolean(IltBooleanState state, boolean value)
          Sets the value of a state
 boolean setBoolean(ilog.tgo.model.internal.IltStatePath path, boolean value)
          Sets the value of a state
 boolean setFloat(IltNumericState state, float value)
          Sets the value of a state
 boolean setFloat(ilog.tgo.model.internal.IltStatePath path, float value)
          Sets the value of a state
 boolean setInteger(IltNumericState state, int value)
          Sets the value of a state
 boolean setInteger(ilog.tgo.model.internal.IltStatePath path, int value)
          Sets the value of a state
 void setListStrategy(ilog.tgo.mapper.state.IltListStateStrategy strategy)
          Sets the strategy applied in the list operation.
 void setMapStrategy(ilog.tgo.mapper.state.IltMapStateStrategy strategy)
          Sets the strategy applied in the mapping procedure.
protected  void setStateSystem(IltStateSystem system)
          Sets the state system being used by this instance.
 boolean setSymbolic(ilog.tgo.model.internal.IltStatePath path, IltSymbolicStateValue value)
          Returns the current value of a state
 boolean setSymbolic(IltSymbolicState state, IltSymbolicStateValue value)
          Returns the current value of a state
 void severityAdded(ilog.tgo.model.state.event.IltAlarmSystemEvent event)
          This method is called when an alarm severity is added to the system.
 void severityRemoved(ilog.tgo.model.state.event.IltAlarmSystemEvent event)
          This method is called when a state is removed from the system.
 void startChangingObjectState()
          This method is called to indicate the beginning of changes in this object state.
 void stateAdded(ilog.tgo.model.state.event.IltStateSystemEvent event)
          This method is called when a state is added to the system.
 void stateRemoved(ilog.tgo.model.state.event.IltStateSystemEvent event)
          This method is called when a state is removed from the system.
 Enumeration states()
          Returns an enumeration of the states in this dictionary.
 void stateSystemAdded(ilog.tgo.model.state.event.IltStateSystemEvent event)
          This method is called when a state system is added to the system, through the useStateSystem method.
 void stateSystemRemoved(ilog.tgo.model.state.event.IltStateSystemEvent event)
          This method is called when a state is removed from the system, through the unUseStateSystem method.
 Enumeration values()
          Returns an enumeration of the values in this dictionary.
 
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

IltObjectState

protected IltObjectState()
Creates an IltObjectState.


IltObjectState

public IltObjectState(IltStateSystem states,
                      IltAlarmSystem alarms)
Constructor based in a state system

Parameters:
states - state system from where the object state is based
alarms - alarm system from where the object state is based
Internal method or field: do not use!
Method Detail

has

public boolean has(IltState state)
Tests whether this state contains a given constant state (defined in a state system).

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

set

public boolean set(IltState state)
Adds a given constant state (defined in a state system) to this state.


clear

public boolean clear(IltState state)
Removes a given constant state (defined in a state system) from this state.

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

reset

public void reset()
Resets all the state values for the telecom object. When applicable, the state values are set to their default values.


isValid

public boolean isValid()
Deprecated. There are no longer invalid state combinations

Tests whether this object state is semantically valid.

Note: While an object state is invalid, it is not permitted to call computeGraphic() on it. To avoid an exception in this case, computeGraphic() can be temporarily inhibited using IltObject.startDelayingComputeGraphic and IltObject.StartDelayingComputeGraphic.

Deprecated Since:
JTGO 4.0

getAlarmState

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

Returns:
Normally an IltAlarm.State.

getTrapState

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

Returns:
Normally an IltTrap.State.

getObjectStateInfo

public IltObjectStateInfo getObjectStateInfo()
Returns the IltObjectStateInfo describing the class of this object.


map

public void map(IltObject object,
                IltCompositeGraphic graphic)
Maps an entire IltObjectState. This means: compute the graphic representation for this state.

This function is usually implemented by recursion on the IltState instances contained in this object state.

Parameters:
object - The telecom object containing this semantic state.
graphic - A graphic object representing the telecom object.

list

public void list(IltStateListing listing)
Deprecated. 

Generates a plain text listing of the secondary states.

This function is used to build the contents of the information window.

Deprecated Since:
JTGO 3.1

clone

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

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

equals

public boolean equals(Object obj)
Compares this object with another object.

When subclassing IltObjectState override this method to validate the equality of added attributes.

Overrides:
equals in class Object

setStateSystem

protected void setStateSystem(IltStateSystem system)
Sets the state system being used by this instance. This method is not intended to be called by the user, instead it is used for initialization in case of deserialization of subclasses.

Internal method or field: do not use!

getStateSystem

public IltStateSystem getStateSystem()
Returns the state system used by this instance.

Returns:
State system

setAlarmSystem

protected void setAlarmSystem(IltAlarmSystem system)
Sets the alarm system being used by this instance. This method is not intended to be called by the user, instead it is used for initialization in case of deserialization of subclasses.

Internal method or field: do not use!

getAlarmSystem

public IltAlarmSystem getAlarmSystem()
Returns the Alarm System used by this instance.

Returns:
Alarm system

setMapStrategy

public void setMapStrategy(ilog.tgo.mapper.state.IltMapStateStrategy strategy)
Sets the strategy applied in the mapping procedure.

Internal method or field: do not use!

getMapStrategy

public ilog.tgo.mapper.state.IltMapStateStrategy getMapStrategy()
Returns the strategy used to map the state to their graphical representation.

Internal method or field: do not use!

setListStrategy

public void setListStrategy(ilog.tgo.mapper.state.IltListStateStrategy strategy)
Sets the strategy applied in the list operation.

Internal method or field: do not use!

getListStrategy

public ilog.tgo.mapper.state.IltListStateStrategy getListStrategy()
Returns the strategy used to list the states.

Internal method or field: do not use!

getStateValueTable

protected ilog.tgo.model.internal.IltStateValueTable getStateValueTable()
Returns the table which stores the states and values. If this table does not exist yet, then we create a new one to be returned.

Internal method or field: do not use!

addObjectStateListener

public void addObjectStateListener(ilog.tgo.model.state.event.IltObjectStateListener listener)
Adds a new listener to an object state.

Parameters:
listener - new listener to the state system, must be an IltObjectStateListener
Internal method or field: do not use!

removeObjectStateListener

public void removeObjectStateListener(ilog.tgo.model.state.event.IltObjectStateListener listener)
Removes a listener from a object state.

Parameters:
listener - listener to be removed
Internal method or field: do not use!

stateAdded

public void stateAdded(ilog.tgo.model.state.event.IltStateSystemEvent event)
This method is called when a state is added to the system.

Specified by:
stateAdded in interface ilog.tgo.model.state.event.IltStateSystemListener
Parameters:
event - event indicating the state which was added and the position in the system where this operation occurred.
Internal method or field: do not use!

stateRemoved

public void stateRemoved(ilog.tgo.model.state.event.IltStateSystemEvent event)
This method is called when a state is removed from the system.

Specified by:
stateRemoved in interface ilog.tgo.model.state.event.IltStateSystemListener
Parameters:
event - event indicating the state which was removed and the position in the system where this operation occurred.
Internal method or field: do not use!

stateSystemAdded

public void stateSystemAdded(ilog.tgo.model.state.event.IltStateSystemEvent event)
This method is called when a state system is added to the system, through the useStateSystem method.

Specified by:
stateSystemAdded in interface ilog.tgo.model.state.event.IltStateSystemListener
Parameters:
event - event indicating the state which was added and the position in the system where this operation occurred.
Internal method or field: do not use!

stateSystemRemoved

public void stateSystemRemoved(ilog.tgo.model.state.event.IltStateSystemEvent event)
This method is called when a state is removed from the system, through the unUseStateSystem method.

Specified by:
stateSystemRemoved in interface ilog.tgo.model.state.event.IltStateSystemListener
Parameters:
event - event indicating the state which was removed and the position in the system where this operation occurred.
Internal method or field: do not use!

severityAdded

public void severityAdded(ilog.tgo.model.state.event.IltAlarmSystemEvent event)
This method is called when an alarm severity is added to the system.

Specified by:
severityAdded in interface ilog.tgo.model.state.event.IltAlarmSystemListener
Parameters:
event - event indicating the severity which was added
Internal method or field: do not use!

severityRemoved

public void severityRemoved(ilog.tgo.model.state.event.IltAlarmSystemEvent event)
This method is called when a state is removed from the system.

Specified by:
severityRemoved in interface ilog.tgo.model.state.event.IltAlarmSystemListener
Parameters:
event - event indicating the state which was removed and the position in the system where this operation occurred.
Internal method or field: do not use!

states

public Enumeration states()
Returns an enumeration of the states in this dictionary.

Specified by:
states in interface ilog.tgo.model.internal.IltStateValueCollection
Internal method or field: do not use!

values

public Enumeration values()
Returns an enumeration of the values in this dictionary.

Specified by:
values in interface ilog.tgo.model.internal.IltStateValueCollection
Internal method or field: do not use!

inverseStates

public Enumeration inverseStates()
Returns an enumeration of the states in this dictionary - from back to front.

Internal method or field: do not use!

inverseValues

public Enumeration inverseValues()
Returns an enumeration of the values in this dictionary - from back to front.

Internal method or field: do not use!

getPrimaryState

public IltState getPrimaryState()
Returns the primary state present in this object state.

Internal method or field: do not use!

set

public boolean set(IltState state,
                   Object value)
            throws IltInvalidStateValueException
Adds a given constant state (defined in a state system) to this state.

Please note that, to have this state set, it must be present either in the IltStateSystem or in the IltAlarmSystem to complete the operation.

Specified by:
set in interface ilog.tgo.model.internal.IltStateValueCollection
Parameters:
state - State to be added.
value - Value of the state.
Returns:
true when the operation resulted in a modification of the collection.
Throws:
IltInvalidStateValueException

get

public Object get(IltState state)
Returns the current value of a state.

Specified by:
get in interface ilog.tgo.model.internal.IltStateValueCollection
Parameters:
state - The state inside the system.

getAggregate

public ilog.tgo.model.internal.IltAggregateStateValue getAggregate(ilog.tgo.model.internal.IltAggregateState state)
Returns the current value of a state

Specified by:
getAggregate in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state whose value is being retrieved
Internal method or field: do not use!

getBoolean

public boolean getBoolean(IltBooleanState state)
Returns the current value of a state

Specified by:
getBoolean in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state whose value is being retrieved
Internal method or field: do not use!

getInteger

public int getInteger(IltNumericState state)
Returns the current value of a state

Specified by:
getInteger in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state whose value is being retrieved

getFloat

public float getFloat(IltNumericState state)
Returns the current value of a state

Specified by:
getFloat in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state whose value is being retrieved

getSymbolic

public IltSymbolicStateValue getSymbolic(IltSymbolicState state)
Returns the current value of a state

Specified by:
getSymbolic in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state whose value is being retrieved
Internal method or field: do not use!

setBoolean

public boolean setBoolean(IltBooleanState state,
                          boolean value)
Sets the value of a state

Specified by:
setBoolean in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state being set
value - value of the state
Internal method or field: do not use!

setInteger

public boolean setInteger(IltNumericState state,
                          int value)
Sets the value of a state

Specified by:
setInteger in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state being set
value - value of the state
Internal method or field: do not use!

setFloat

public boolean setFloat(IltNumericState state,
                        float value)
Sets the value of a state

Specified by:
setFloat in interface ilog.tgo.model.internal.IltTypedStateValueCollection
Parameters:
state - state being set
value - value of the state
Internal method or field: do not use!

setSymbolic

public boolean setSymbolic(IltSymbolicState state,
                           IltSymbolicStateValue value)
Returns the current value of a state

Parameters:
state - state whose value is being set
value - value being set, IltSymbolicStateValue instance.
Internal method or field: do not use!

setAggregate

public boolean setAggregate(ilog.tgo.model.internal.IltAggregateState state,
                            ilog.tgo.model.internal.IltAggregateStateValue value)
Sets the value of the aggregate state

Parameters:
state - state whose value is being set
value - value being set, IltAggregateStateValue instance.
Internal method or field: do not use!

set

public boolean set(ilog.tgo.model.internal.IltStatePath path,
                   Object value)
            throws IltInvalidStateValueException
Sets the value of a state.

This method verifies if the given

Specified by:
set in interface ilog.tgo.model.internal.IltStatePathValueCollection
Parameters:
path - path of the state inside the system
value - value of the state
Throws:
IltInvalidStateValueException
Internal method or field: do not use!

has

public boolean has(ilog.tgo.model.internal.IltStatePath path)
Verifies if the given state is set.

Specified by:
has in interface ilog.tgo.model.internal.IltStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

clear

public boolean clear(ilog.tgo.model.internal.IltStatePath path)
Clear the value of a state

Specified by:
clear in interface ilog.tgo.model.internal.IltStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

get

public Object get(ilog.tgo.model.internal.IltStatePath path)
Returns the current value of a state

Specified by:
get in interface ilog.tgo.model.internal.IltStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

getAggregate

public ilog.tgo.model.internal.IltAggregateStateValue getAggregate(ilog.tgo.model.internal.IltStatePath path)
Returns the current value of a state

Specified by:
getAggregate in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

getBoolean

public boolean getBoolean(ilog.tgo.model.internal.IltStatePath path)
Returns the current value of a state

Specified by:
getBoolean in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

getInteger

public int getInteger(ilog.tgo.model.internal.IltStatePath path)
Returns the current value of a state

Specified by:
getInteger in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

getFloat

public float getFloat(ilog.tgo.model.internal.IltStatePath path)
Returns the current value of a state

Specified by:
getFloat in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

getSymbolic

public IltSymbolicStateValue getSymbolic(ilog.tgo.model.internal.IltStatePath path)
Returns the current value of a state

Specified by:
getSymbolic in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
Internal method or field: do not use!

setBoolean

public boolean setBoolean(ilog.tgo.model.internal.IltStatePath path,
                          boolean value)
Sets the value of a state

Specified by:
setBoolean in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
value - value of the state
Internal method or field: do not use!

setInteger

public boolean setInteger(ilog.tgo.model.internal.IltStatePath path,
                          int value)
Sets the value of a state

Specified by:
setInteger in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
value - value of the state
Internal method or field: do not use!

setFloat

public boolean setFloat(ilog.tgo.model.internal.IltStatePath path,
                        float value)
Sets the value of a state

Specified by:
setFloat in interface ilog.tgo.model.internal.IltTypedStatePathValueCollection
Parameters:
path - path of the state inside the system
value - value of the state
Internal method or field: do not use!

setSymbolic

public boolean setSymbolic(ilog.tgo.model.internal.IltStatePath path,
                           IltSymbolicStateValue value)
Returns the current value of a state

Parameters:
path - path of the state inside the system
value - value being set, IltSymbolicStateValue instance.
Internal method or field: do not use!

setAggregate

public boolean setAggregate(ilog.tgo.model.internal.IltStatePath path,
                            ilog.tgo.model.internal.IltAggregateStateValue value)
Returns the current value of a state

Parameters:
path - path of the state inside the system
value - value being set, IltAggregateStateValue instance.
Internal method or field: do not use!

startChangingObjectState

public void startChangingObjectState()
This method is called to indicate the beginning of changes in this object state. Notification about state changes will be delayed until endChangingObjectState() is called.

Specified by:
startChangingObjectState in interface ilog.tgo.model.internal.IltStateValueChangeNotifier

endChangingObjectState

public void endChangingObjectState()
This method is called to indicate the end of changes in this object state. It sends out notifications about state changes, if this is the outermost call to endChangingObjectState().

Specified by:
endChangingObjectState in interface ilog.tgo.model.internal.IltStateValueChangeNotifier

fireObjectStateSet

public void fireObjectStateSet(ilog.tgo.model.internal.IltStatePath path,
                               Object value)
Notifies the registered listeners that the value of a state has changed.

Specified by:
fireObjectStateSet in interface ilog.tgo.model.internal.IltStateValueChangeNotifier
Parameters:
path - Path to the changed state
value - New state value
See Also:
fireObjectStateChanged()
Internal method or field: do not use!

fireObjectStateChanged

protected void fireObjectStateChanged()
Notifies that the object state has changed.

This method should be called by subclasses of IltObjectState when new attributes are modified, so that the notification is propagated to the listeners and associated objects are updated accordingly.


attach

public void attach(IltObject obj)
Attaches this object state to a given business object.

See Also:
IltObject.setObjectState(IltObjectState)
Internal method or field: do not use!

detach

public void detach(IltObject obj)
Detaches this object state from a given business object.

See Also:
IltObject.setObjectState(IltObjectState)
Internal method or field: do not use!

getAttributeValue

public Object getAttributeValue(String name)
Retrieves the value of an attribute of this object according to the given name.

Specified by:
getAttributeValue in interface ilog.cpl.model.internal.IlpCompositeAttributeValue
Parameters:
name - The name of the attribute whose value is to be retrieved.
Returns:
The value of the attribute or VALUE_NOT_SET if no value has been set.
Internal method or field: do not use!


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