ilog.concert
Interface IloAddable

All Known Subinterfaces:
IloConstraint, IloConversion, IloLPMatrix, IloModel, IloModeler, IloMPModeler, IloObjective, IloRange, IloSOS1, IloSOS2
All Known Implementing Classes:
IloCplex

public interface IloAddable

This interface is used for modeling objects. Objects of classes implementing this interface can be added to an instance of IloModel. Constraint classes, such as IloRange, and classes representing optimization objectives, such as IloObjective, are examples.

All addable modeling objects can be assigned a name with the method setName(). The name can be queried with the method getName(). Assigning a name is not required. Modeling objects are created without an assigned name unless a name is specified in the construction.


Method Summary
 java.lang.String getName()
          Accesses the name assigned to the invoking modeling object.
 void setName(java.lang.String name)
          Sets the name of the invoking addable object.
 

Method Detail

getName

public java.lang.String getName()
Accesses the name assigned to the invoking modeling object. If the invoking modeling object has not been assigned a name, null is returned.

Returns:
The name assigned to the invoking modeling object.

setName

public void setName(java.lang.String name)
Sets the name of the invoking addable object. To erase a name assigned to the invoking modeling object, pass null as the argument.

Parameters:
name - The name assigned to the invoking modeling object. null can be passed as argument to remove an assigned name from the invoking modeling object.