ilog.cpl.model
Class IlpStaticAttribute

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

public class IlpStaticAttribute
extends IlpDefaultAttribute
implements IlpAttributeValueProvider

This class defines an attribute that has a static value.

Since:
JTGO 3.0

Constructor Summary
IlpStaticAttribute(String name, Object value)
          Constructor
 
Method Summary
 Object getValue()
          Returns the value of this attribute in the given attribute holder.
 Object getValue(IlpAttributeValueHolder h)
          Returns the value of this attribute in the given attribute holder.
 boolean isDependentOn(IlpAttribute a)
          Indicates whether this attribute depends on the given attribute to calculate its value.
 boolean isTransient()
          Indicates whether this attribute is persistent 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
 

Constructor Detail

IlpStaticAttribute

public IlpStaticAttribute(String name,
                          Object value)
Constructor

Parameters:
name - Attribute name
value - Attribute value
Method Detail

getValue

public Object getValue()
Returns the value of this attribute in the given attribute holder.


getValue

public Object getValue(IlpAttributeValueHolder h)
Returns the value of this attribute in the given attribute holder.

Specified by:
getValue in interface IlpAttributeValueProvider
Parameters:
h - Attribute value holder
Returns:
As this is a static attribute, this method returns the same value as getValue().

isDependentOn

public boolean isDependentOn(IlpAttribute a)
Indicates whether this attribute depends on the given attribute to calculate its value.

Specified by:
isDependentOn in interface IlpAttributeValueProvider

isTransient

public boolean isTransient()
Indicates whether this attribute is persistent 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.