ilog.cpl.model
Class IlpComputedAttribute

java.lang.Object
  extended by ilog.cpl.model.IlpDefaultAttribute
      extended by ilog.cpl.model.IlpComputedAttribute
All Implemented Interfaces:
IlpAttribute, IlpAttributeValueProvider

public abstract class IlpComputedAttribute
extends IlpDefaultAttribute
implements IlpAttributeValueProvider

This class models an attribute whose value is computed based on external information. In order to define how the attribute value is calculated and based on which attributes, the user will have to create subclasses of this one and implement the IlpAttributeValueProvider interface.

Since:
JTGO 3.0

Constructor Summary
protected IlpComputedAttribute(String name, Class valueClass)
          Creates a new attribute with the given name and class.
 
Method Summary
 boolean isTransient()
          Indicates whether this attribute should persist or not.
 
Methods inherited from class ilog.cpl.model.IlpDefaultAttribute
getAttributeGroup, getDefaultValue, getName, getValueClass, setAttributeGroup, setDefaultValue, setName, setTransient, setValueClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.cpl.model.IlpAttributeValueProvider
getValue, isDependentOn
 

Constructor Detail

IlpComputedAttribute

protected IlpComputedAttribute(String name,
                               Class valueClass)
Creates a new attribute with the given name and class.

Parameters:
name - The name of the new attribute.
valueClass - The class of the new attribute.
Method Detail

isTransient

public boolean isTransient()
Indicates whether this attribute should persist or not.

Specified by:
isTransient in interface IlpAttribute
Overrides:
isTransient in class IlpDefaultAttribute
Returns:
true.


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