partage
Class ComplexInstance.PreemptionConstraint

java.lang.Object
  extended by partage.ComplexInstance.PreemptionConstraint
All Implemented Interfaces:
ComplexInstance.Constraint
Enclosing class:
ComplexInstance

public static class ComplexInstance.PreemptionConstraint
extends java.lang.Object
implements ComplexInstance.Constraint

A static class implementing the Preemption constraint on a set of objects.

Version:
july 07
Author:
Sylvain Bouveret

Constructor Summary
ComplexInstance.PreemptionConstraint(int _nO)
          The constructor of a PreemptionConstraint object.
ComplexInstance.PreemptionConstraint(int[] _objects)
          The constructor of a PreemptionConstraint object.
 
Method Summary
 int[] getObjects()
          The standard getter to the set of objects
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexInstance.PreemptionConstraint

public ComplexInstance.PreemptionConstraint(int[] _objects)
The constructor of a PreemptionConstraint object.

Parameters:
_objects - the array of objects concerned by the preemption constraint.

ComplexInstance.PreemptionConstraint

public ComplexInstance.PreemptionConstraint(int _nO)
The constructor of a PreemptionConstraint object.

Parameters:
_nO - the preemption constraint holds on the objects from 1 to _nO.
Method Detail

getObjects

public int[] getObjects()
The standard getter to the set of objects

Specified by:
getObjects in interface ComplexInstance.Constraint
Returns:
the array of objects concerned by the preemption constraint.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object