java.lang.Object
java.lang.Record
org.maxicp.cp.engine.constraints.scheduling.Activity
Represents a scheduling activity i.e. an interval variable that consumes an ammount of resource over time.
- Author:
- Pierre Schaus, Charles Thomas
-
Constructor Summary
ConstructorsConstructorDescriptionActivity(CPIntervalVar interval, CPIntVar height) Creates an instance of aActivityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intintintintintintintintbooleanbooleanhasFixedPartAt(int t) final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.interval()Returns the value of theintervalrecord component.booleanisAbsent()booleanbooleanisFixed()booleanbooleanbooleanbooleanvoidvoidsetEndMax(int val) voidsetEndMin(int val) voidsetHeightMax(int val) voidsetHeightMin(int val) voidsetLengthMax(int val) voidsetLengthMin(int val) voidvoidsetStartMax(int val) voidsetStartMin(int val) toString()Returns a string representation of this record class.
-
Constructor Details
-
Activity
Creates an instance of aActivityrecord class.- Parameters:
interval- the value for theintervalrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
getStartMin
public int getStartMin() -
getStartMax
public int getStartMax() -
getEndMin
public int getEndMin() -
getEndMax
public int getEndMax() -
getHeightMin
public int getHeightMin() -
getHeightMax
public int getHeightMax() -
getLengthMin
public int getLengthMin() -
getLengthMax
public int getLengthMax() -
isPresent
public boolean isPresent() -
isAbsent
public boolean isAbsent() -
isOptional
public boolean isOptional() -
hasFixedPartAt
public boolean hasFixedPartAt(int t) -
hasFixedPart
public boolean hasFixedPart() -
isStartFixed
public boolean isStartFixed() -
isLengthFixed
public boolean isLengthFixed() -
isEndFixed
public boolean isEndFixed() -
isFixed
public boolean isFixed() -
setStartMin
public void setStartMin(int val) -
setStartMax
public void setStartMax(int val) -
setEndMin
public void setEndMin(int val) -
setEndMax
public void setEndMax(int val) -
setLengthMin
public void setLengthMin(int val) -
setLengthMax
public void setLengthMax(int val) -
setHeightMin
public void setHeightMin(int val) -
setHeightMax
public void setHeightMax(int val) -
setPresent
public void setPresent() -
setAbsent
public void setAbsent() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-