|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the API for classes that represent and-constraints.
An IloAnd
constraint is a multiple set of constraints.
Objects of type IloConstraint
can be added to and removed from
an instance of IloAnd
.
The constraints in an and-constraint can be queried by the
iterator returned by the method iterator
.
Method Summary | |
IloConstraint |
add(IloConstraint object)
This method adds the constraint to the invoking and-constraint. |
IloConstraint[] |
add(IloConstraint[] objects)
This method adds the array of constraints to the invoking and-constraint. |
IloConstraint[] |
add(IloConstraint[] objects,
int start,
int num)
This method adds constraints to the invoking instance of IloAnd . |
java.util.Iterator |
iterator()
This method returns an iterator that traverses the constraints in the and-constraint. |
IloConstraint |
remove(IloConstraint object)
This method removes the constraints from the invoking and-constraint. |
IloConstraint[] |
remove(IloConstraint[] objects)
This method removes the array of constraints from the invoking and-constraint. |
IloConstraint[] |
remove(IloConstraint[] objects,
int start,
int num)
This method removes constraints from the invoking instance of IloAnd . |
Methods inherited from interface ilog.concert.IloAddable |
getName, setName |
Method Detail |
public IloConstraint add(IloConstraint object) throws IloException
object
- The constraint to be added to the invoking
instance of IloAnd
.
IloException
public IloConstraint[] add(IloConstraint[] objects) throws IloException
objects
- The array of constraints to be added to the
invoking instance of IloAnd
.
IloException
public IloConstraint[] add(IloConstraint[] objects, int start, int num) throws IloException
IloAnd
.
All objects implementing the IloConstraint
interface
objects[start]...objects[start+num-1]
are added to
the invoking IloAnd
object.
objects
- The array of constraints to be added
to the invoking instance of IloAnd
.start
- The first constraint to be added to the
invoking instance of IloAnd
.num
- The number of constraints to be added to
the invoking instance of IloAnd
.
IloException
public IloConstraint remove(IloConstraint object) throws IloException
If the constraint has been added multiple times, only one instance is removed from the and-constraint.
object
- The constraint to be removed from the invoking
instance of IloAnd
.
IloException
public IloConstraint[] remove(IloConstraint[] objects) throws IloException
objects
- The array of constraints to be removed from the
invoking IloAnd
.
IloException
public IloConstraint[] remove(IloConstraint[] objects, int start, int num) throws IloException
IloAnd
.
The constraints or, more precisely, the objects implementing
the IloConstraint
interface
objects[start]...objects[start+num-1]
are removed
from the invoking instance of IloAnd
. If a constraint
has been added multiple times, only one instance is removed
from the and-constraint.
objects
- The array of constraints to be removed
from the invoking instance of IloAnd
.start
- The first constraints to be removed from the
invoking instance of IloAnd
.num
- The number of constraints to be removed from
the invoking instance of IloAnd
.
IloException
public java.util.Iterator iterator()
Any manipulation of the and-constraint will render an
iterator accessed with this method invalid. An iterator
can be used only until the method add, remove
, or
delete
is called on the invoking instance of
IloAnd
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |