jopt.js.api.variable
Interface Activity


public interface Activity

This interface is meant to encapsulate all the behavior of an activity that needs to be exposed to the end user. Any class that implements this interface will be able to set up activities, build relationships between activities and resources, and also establish transition times.

Author:
James Boerkoel

Method Summary
 void addResource(int operationID, int resourceID, int start, int end, int minDur, int maxDur)
          Creates and adds the resource to the specified operation
 boolean choicePointStackSet()
          Returns true if a call to setChoicePointStack will fail
 jopt.csp.variable.CspConstraint endsAfterEndOf(Activity act)
          Returns a constraint constraining this activity to end after the end of act
 jopt.csp.variable.CspConstraint endsAfterEndOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to end after the end of expr
 jopt.csp.variable.CspConstraint endsAfterStartOf(Activity act)
          Returns a constraint constraining this activity to end after the start of act
 jopt.csp.variable.CspConstraint endsAfterStartOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to end after the start of expr
 jopt.csp.variable.CspConstraint endsAtEndOf(Activity act)
          Returns a constraint constraining this activity to end at the end of act
 jopt.csp.variable.CspConstraint endsAtEndOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to end at the end of expr
 jopt.csp.variable.CspConstraint endsAtStartOf(Activity act)
          Returns a constraint constraining this activity to end at the start of act
 jopt.csp.variable.CspConstraint endsAtStartOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to end at the start of expr
 jopt.csp.variable.CspConstraint endsBeforeEndOf(Activity act)
          Returns a constraint constraining this activity to end before the end of act
 jopt.csp.variable.CspConstraint endsBeforeEndOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to end before the end of expr
 jopt.csp.variable.CspConstraint endsBeforeStartOf(Activity act)
          Returns a constraint constraining this activity to end before the start of act
 jopt.csp.variable.CspConstraint endsBeforeStartOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to end before the start of expr
 ResourceSet[] getAllAlternativeResourceSets()
          Gets all sets of alternative resources that exist within this activity
 int getAvailResourceCount(int operationId)
          Returns the number of resources that can still be assigned to the operation with the specified id
 jopt.csp.variable.CspIntExpr getDurationExpr()
          Returns an expression indicating the duration of this activity
 int getDurationMax()
          Gets the maximum duration
 int getDurationMin()
          Gets the minimum duration
 int getEarliestEndTime()
          Returns the earliest end time for this activity
 int getEarliestEndTime(int operationID, int resourceID)
          Returns the earliest end time for the specified operation and resource
 int getEarliestStartTime()
          Returns the earliest start time for this activity
 int getEarliestStartTime(int operationID, int resourceID)
          Returns the earliest start time for the specified operation and resource
 jopt.csp.variable.CspIntExpr getEndTimeExpr()
          Returns an expression indicating the possible end times for this activity
 int getID()
          Returns the activity's id
 int getLatestEndTime()
          Returns the latest end time for this activity
 int getLatestEndTime(int operationID, int resourceID)
          Returns the latest end time for the specified operation and resource
 int getLatestStartTime()
          Returns the latest start time for this activity
 int getLatestStartTime(int operationID, int resourceID)
          Returns the latest start time for the specified operation and resource
 int getNumUnassignedOperations()
          Gets the number of operations that are in need of a resource assignment
 int[] getRequiredResources()
          Returns all resources that this activity uses
 jopt.csp.variable.CspIntExpr getStartTimeExpr()
          Returns an expression indicating the possible start times for this activity
 int getTransitionFromCategory()
          Returns the category that has been established as the "transition from" category of this activity.
 int getTransitionToCategory()
          Returns the category that has been established as the "transition to" category of this activity.
 boolean isBound()
          Returns true if all operation have a resource assigned to them and the activity has a unique start and end time
 void removePossibleResource(int operationId, int resourceId)
          Removes the resource with the specified resource id from the list of possible resources for the operation with the specified operation id
 void removeStartTime(int n)
          Removes a single value from the potential start times of this activity
 void removeStartTimes(int start, int end)
          Removes a range of start time values from this activity
 jopt.csp.variable.CspConstraint require(Resource[] possResourceSet, int capacity)
          Builds a constraint that forces this activity to require one of resources in the given set in the capacity specified.
 void setChoicePointStack(jopt.csp.spi.solver.ChoicePointStack cps)
          Sets the choicepoint stack associated with this activity
 void setDurationMax(int durMax)
          Sets the maximum duration of the activity
 void setDurationMin(int durMin)
          Sets the minimum duration of the activity
 void setEarliestEndTime(int eet)
          Set the earliest end time for the activity
 void setEarliestEndTime(int resourceIdx, int eet)
          Set the earliest end time for the resource at the specified index
 void setEarliestStartTime(int est)
          Set the earliest start time for the activity
 void setEarliestStartTime(int resourceID, int est)
          Set the earliest start time for the resource with the specified id
 void setLatestEndTime(int let)
          Set the latest end time for the activity
 void setLatestEndTime(int resourceIdx, int let)
          Set the latest end time for the resource at the specified index
 void setLatestStartTime(int lst)
          Set the latest start time for the activity
 void setLatestStartTime(int resourceId, int lst)
          Set the latest start time for resource with the specified id
 void setRequiredResource(int operationId, int resourceId)
          Forces the operation with the specified operationId to use the resource with the specified resourceId.
 void setStartTime(int n)
          Restricts the start time of this activity to a single value
 void setStartTime(int resourceID, int n)
          Restricts the start time of the specified resource to a single value
 void setStartTimeRange(int start, int end)
          Restricts the start time of this activity to be between start and end
 void setTimeline(int operationID, int resourceID, jopt.csp.util.IntIntervalSet timeline)
          Sets the available timelines of the given resource for this activity / operation combination
 void setTransitionFromCategory(int transitFromCategory)
          Sets the "transition from" category and makes sure to update the transition table if one has been registered
 void setTransitionToCategory(int transitionToCategory)
          Sets the "transition to" category and makes sure to update the transition table if one has been registered
 void setTransitTimeFrom(Activity transitFromAct, int transitTime)
          Sets the transition time from the "transition from" activity to this activity
 void setTransitTimeFrom(int transitFromCat, int transitTime)
          Sets the transition time for the "transition from" category for this activity
 void setTransitTimeTo(Activity transitToAct, int transitTime)
          Sets the transition time from this activity to the "transition to" activity
 void setTransitTimeTo(int transitToCat, int transitTime)
          Sets the transition time for the "transition to" category for this activity
 jopt.csp.variable.CspConstraint startsAfterEndOf(Activity act)
          Returns a constraint constraining this activity to start after the end of act
 jopt.csp.variable.CspConstraint startsAfterEndOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to start after the end of expr
 jopt.csp.variable.CspConstraint startsAfterStartOf(Activity act)
          Returns a constraint constraining this activity to start after the start of act
 jopt.csp.variable.CspConstraint startsAfterStartOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to start after the start of expr
 jopt.csp.variable.CspConstraint startsAtEndOf(Activity act)
          Returns a constraint constraining this activity to start at the end of act
 jopt.csp.variable.CspConstraint startsAtEndOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to start at the end of expr
 jopt.csp.variable.CspConstraint startsAtStartOf(Activity act)
          Returns a constraint constraining this activity to start at the start of act
 jopt.csp.variable.CspConstraint startsAtStartOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to start at the start of expr
 jopt.csp.variable.CspConstraint startsBeforeEndOf(Activity act)
          Returns a constraint constraining this activity to start before the end of act
 jopt.csp.variable.CspConstraint startsBeforeEndOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to start before the end of expr
 jopt.csp.variable.CspConstraint startsBeforeStartOf(Activity act)
          Returns a constraint constraining this activity to start before the start of act
 jopt.csp.variable.CspConstraint startsBeforeStartOf(jopt.csp.variable.CspIntExpr expr)
          Returns a constraint constraining this activity to start before the start of expr
 void updateGraph(jopt.csp.spi.arcalgorithm.graph.NodeArcGraph graph)
          Adds nodes representing this expression to the node arc graph
 

Method Detail

getTransitionToCategory

public int getTransitionToCategory()
Returns the category that has been established as the "transition to" category of this activity. This int is used to determine a relationship between this activity and a previous activity. This defaults to the id of the activity; however, it can be overwritten to allow for shared behavior between two similar activities, ie two activities of the same "transition from" category.

Returns:
an identifier indicating the "transition to" category

setTransitionToCategory

public void setTransitionToCategory(int transitionToCategory)
Sets the "transition to" category and makes sure to update the transition table if one has been registered

Parameters:
transitionToCategory - new "transition to" category

getTransitionFromCategory

public int getTransitionFromCategory()
Returns the category that has been established as the "transition from" category of this activity. This int is used to determine a relationship between this activity and a subsequent activity. This defaults to the id of the activity; however, it can be overwritten to allow for shared behavior between two similar activities, ie two activities of the same "transition from" category.

Returns:
the transition from category

setTransitionFromCategory

public void setTransitionFromCategory(int transitFromCategory)
Sets the "transition from" category and makes sure to update the transition table if one has been registered

Parameters:
transitFromCategory - new transit from category

getNumUnassignedOperations

public int getNumUnassignedOperations()
Gets the number of operations that are in need of a resource assignment

Returns:
the number of operations that are in need of a resource assignment

getAvailResourceCount

public int getAvailResourceCount(int operationId)
Returns the number of resources that can still be assigned to the operation with the specified id

Parameters:
operationId - the operation for which the resource count is desired
Returns:
int representing the number of available resources

setRequiredResource

public void setRequiredResource(int operationId,
                                int resourceId)
                         throws jopt.csp.variable.PropagationFailureException
Forces the operation with the specified operationId to use the resource with the specified resourceId.

Parameters:
operationId - the id of the operation for which we are setting the required resource
resourceId - the id of the resource to be used by the operation
Throws:
jopt.csp.variable.PropagationFailureException - if the assignment causes any errors

removePossibleResource

public void removePossibleResource(int operationId,
                                   int resourceId)
                            throws jopt.csp.variable.PropagationFailureException
Removes the resource with the specified resource id from the list of possible resources for the operation with the specified operation id

Parameters:
operationId - the id of the operation for which adjustments should be made
resourceId - the id of the resource on which adjustments should be made
Throws:
jopt.csp.variable.PropagationFailureException - if the reduction causes any errors

setTransitTimeFrom

public void setTransitTimeFrom(Activity transitFromAct,
                               int transitTime)
Sets the transition time from the "transition from" activity to this activity

Parameters:
transitFromAct - the activity that would theoretically occur immediatly prior to this one
transitTime - the time it takes to transition to this activity from the specified activity

setTransitTimeTo

public void setTransitTimeTo(Activity transitToAct,
                             int transitTime)
Sets the transition time from this activity to the "transition to" activity

Parameters:
transitToAct - the activity that would theoretically follow this activity
transitTime - the time it takes to transition from this activity to the specified activity

setTransitTimeFrom

public void setTransitTimeFrom(int transitFromCat,
                               int transitTime)
Sets the transition time for the "transition from" category for this activity

Parameters:
transitFromCat - the "transition from" category of the activity that would theoretically occur immediatly prior to this one
transitTime - the time it takes to transition from an activity of the specified category to this activity

setTransitTimeTo

public void setTransitTimeTo(int transitToCat,
                             int transitTime)
Sets the transition time for the "transition to" category for this activity

Parameters:
transitToCat - the "transition to" category of the activity that would theoretically follow this one
transitTime - the time it takes to transition from this activity to an activity of the specified category

getAllAlternativeResourceSets

public ResourceSet[] getAllAlternativeResourceSets()
Gets all sets of alternative resources that exist within this activity

Returns:
An array of all resource sets that still have multiple possibilities

getID

public int getID()
Returns the activity's id

Returns:
activity's id

getEarliestStartTime

public int getEarliestStartTime()
Returns the earliest start time for this activity

Returns:
earliest start time for activity

require

public jopt.csp.variable.CspConstraint require(Resource[] possResourceSet,
                                               int capacity)
                                        throws jopt.csp.variable.PropagationFailureException
Builds a constraint that forces this activity to require one of resources in the given set in the capacity specified.

Parameters:
possResourceSet - an array of equivalent Resource objects used to meet the needs of the activity
capacity - the amount of the determined resource that will be required to accomplish the task
Returns:
CspConstraint that constrains the activity appropriately
Throws:
jopt.csp.variable.PropagationFailureException

addResource

public void addResource(int operationID,
                        int resourceID,
                        int start,
                        int end,
                        int minDur,
                        int maxDur)
                 throws jopt.csp.variable.PropagationFailureException
Creates and adds the resource to the specified operation

Parameters:
operationID - id of operation to which we are adding the resource
resourceID - id of resource being added
start - earliest start time of resource
end - latest start time of resource
minDur - minimum duration of this
maxDur - maximum duration
Throws:
jopt.csp.variable.PropagationFailureException

getStartTimeExpr

public jopt.csp.variable.CspIntExpr getStartTimeExpr()
Returns an expression indicating the possible start times for this activity

Returns:
an expression indicating the possible start times for this activity

getEndTimeExpr

public jopt.csp.variable.CspIntExpr getEndTimeExpr()
Returns an expression indicating the possible end times for this activity

Returns:
an expression indicating the possible end times for this activity

getDurationExpr

public jopt.csp.variable.CspIntExpr getDurationExpr()
Returns an expression indicating the duration of this activity

Returns:
an expression indicating the duration of this activity

getEarliestStartTime

public int getEarliestStartTime(int operationID,
                                int resourceID)
Returns the earliest start time for the specified operation and resource

Parameters:
operationID - id of operation that this resource is a part of
resourceID - id of resource whose domain we are altering

getLatestStartTime

public int getLatestStartTime()
Returns the latest start time for this activity


getLatestStartTime

public int getLatestStartTime(int operationID,
                              int resourceID)
Returns the latest start time for the specified operation and resource

Parameters:
operationID - id of operation that this resource is a part of
resourceID - id of resource whose domain we are altering

getEarliestEndTime

public int getEarliestEndTime()
Returns the earliest end time for this activity


getRequiredResources

public int[] getRequiredResources()
Returns all resources that this activity uses


getEarliestEndTime

public int getEarliestEndTime(int operationID,
                              int resourceID)
Returns the earliest end time for the specified operation and resource

Parameters:
operationID - id of operation that this resource is a part of
resourceID - id of resource whose domain we are altering

getLatestEndTime

public int getLatestEndTime()
Returns the latest end time for this activity


getLatestEndTime

public int getLatestEndTime(int operationID,
                            int resourceID)
Returns the latest end time for the specified operation and resource

Parameters:
operationID - id of operation that this resource is a part of
resourceID - id of resource whose domain we are altering

setEarliestStartTime

public void setEarliestStartTime(int resourceID,
                                 int est)
                          throws jopt.csp.variable.PropagationFailureException
Set the earliest start time for the resource with the specified id

Parameters:
resourceID - id of resource
est - the earliest start time
Throws:
jopt.csp.variable.PropagationFailureException

setEarliestStartTime

public void setEarliestStartTime(int est)
                          throws jopt.csp.variable.PropagationFailureException
Set the earliest start time for the activity

Parameters:
est - the earliest start time
Throws:
jopt.csp.variable.PropagationFailureException

setStartTime

public void setStartTime(int resourceID,
                         int n)
                  throws jopt.csp.variable.PropagationFailureException
Restricts the start time of the specified resource to a single value

Parameters:
resourceID - id of resource we are setting
n - time we are setting
Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

setLatestStartTime

public void setLatestStartTime(int resourceId,
                               int lst)
                        throws jopt.csp.variable.PropagationFailureException
Set the latest start time for resource with the specified id

Parameters:
resourceId - id of resource
lst - the latest start time
Throws:
jopt.csp.variable.PropagationFailureException

setLatestStartTime

public void setLatestStartTime(int lst)
                        throws jopt.csp.variable.PropagationFailureException
Set the latest start time for the activity

Parameters:
lst - the latest start time
Throws:
jopt.csp.variable.PropagationFailureException

setEarliestEndTime

public void setEarliestEndTime(int resourceIdx,
                               int eet)
                        throws jopt.csp.variable.PropagationFailureException
Set the earliest end time for the resource at the specified index

Parameters:
resourceIdx - index of resource
eet - the earliest end time
Throws:
jopt.csp.variable.PropagationFailureException

setEarliestEndTime

public void setEarliestEndTime(int eet)
                        throws jopt.csp.variable.PropagationFailureException
Set the earliest end time for the activity

Parameters:
eet - the earliest end time
Throws:
jopt.csp.variable.PropagationFailureException

setLatestEndTime

public void setLatestEndTime(int resourceIdx,
                             int let)
                      throws jopt.csp.variable.PropagationFailureException
Set the latest end time for the resource at the specified index

Parameters:
resourceIdx - index of resource
let - the latest end time
Throws:
jopt.csp.variable.PropagationFailureException

setLatestEndTime

public void setLatestEndTime(int let)
                      throws jopt.csp.variable.PropagationFailureException
Set the latest end time for the activity

Parameters:
let - the latest end time
Throws:
jopt.csp.variable.PropagationFailureException

setDurationMax

public void setDurationMax(int durMax)
                    throws jopt.csp.variable.PropagationFailureException
Sets the maximum duration of the activity

Parameters:
durMax - new maximum duration
Throws:
jopt.csp.variable.PropagationFailureException

setDurationMin

public void setDurationMin(int durMin)
                    throws jopt.csp.variable.PropagationFailureException
Sets the minimum duration of the activity

Parameters:
durMin - new minimum duration
Throws:
jopt.csp.variable.PropagationFailureException

getDurationMax

public int getDurationMax()
Gets the maximum duration

Returns:
maximum duration

getDurationMin

public int getDurationMin()
Gets the minimum duration

Returns:
minimum duration

removeStartTime

public void removeStartTime(int n)
                     throws jopt.csp.variable.PropagationFailureException
Removes a single value from the potential start times of this activity

Parameters:
n - time remove from possible start time
Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

setStartTime

public void setStartTime(int n)
                  throws jopt.csp.variable.PropagationFailureException
Restricts the start time of this activity to a single value

Parameters:
n - time to set start time to
Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

removeStartTimes

public void removeStartTimes(int start,
                             int end)
                      throws jopt.csp.variable.PropagationFailureException
Removes a range of start time values from this activity

Parameters:
start - start of the range being removed
end - end of the range being removed
Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

setStartTimeRange

public void setStartTimeRange(int start,
                              int end)
                       throws jopt.csp.variable.PropagationFailureException
Restricts the start time of this activity to be between start and end

Parameters:
start - new earliest start time
end - new latest end time
Throws:
jopt.csp.variable.PropagationFailureException - If domain is empty

isBound

public boolean isBound()
Returns true if all operation have a resource assigned to them and the activity has a unique start and end time

Returns:
true if all operation have a resource assigned to them and the activity has a unique start and end time

setTimeline

public void setTimeline(int operationID,
                        int resourceID,
                        jopt.csp.util.IntIntervalSet timeline)
                 throws jopt.csp.variable.PropagationFailureException
Sets the available timelines of the given resource for this activity / operation combination

Parameters:
operationID - id of the operation for which this is being set
resourceID - id of the resource who's availability is being reported
timeline - Set that represents the times that the resource is available to service the specified operation
Throws:
jopt.csp.variable.PropagationFailureException

setChoicePointStack

public void setChoicePointStack(jopt.csp.spi.solver.ChoicePointStack cps)
Sets the choicepoint stack associated with this activity

Parameters:
cps - ChoicePointStack that will have control over choice points events on this activity

choicePointStackSet

public boolean choicePointStackSet()
Returns true if a call to setChoicePointStack will fail

Returns:
returns true if the choice point has already been set

endsBeforeStartOf

public jopt.csp.variable.CspConstraint endsBeforeStartOf(Activity act)
Returns a constraint constraining this activity to end before the start of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

endsBeforeEndOf

public jopt.csp.variable.CspConstraint endsBeforeEndOf(Activity act)
Returns a constraint constraining this activity to end before the end of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

endsAfterStartOf

public jopt.csp.variable.CspConstraint endsAfterStartOf(Activity act)
Returns a constraint constraining this activity to end after the start of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

endsAfterEndOf

public jopt.csp.variable.CspConstraint endsAfterEndOf(Activity act)
Returns a constraint constraining this activity to end after the end of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

endsAtStartOf

public jopt.csp.variable.CspConstraint endsAtStartOf(Activity act)
Returns a constraint constraining this activity to end at the start of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

endsAtEndOf

public jopt.csp.variable.CspConstraint endsAtEndOf(Activity act)
Returns a constraint constraining this activity to end at the end of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

startsBeforeStartOf

public jopt.csp.variable.CspConstraint startsBeforeStartOf(Activity act)
Returns a constraint constraining this activity to start before the start of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

startsBeforeEndOf

public jopt.csp.variable.CspConstraint startsBeforeEndOf(Activity act)
Returns a constraint constraining this activity to start before the end of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

startsAfterStartOf

public jopt.csp.variable.CspConstraint startsAfterStartOf(Activity act)
Returns a constraint constraining this activity to start after the start of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

startsAfterEndOf

public jopt.csp.variable.CspConstraint startsAfterEndOf(Activity act)
Returns a constraint constraining this activity to start after the end of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

startsAtStartOf

public jopt.csp.variable.CspConstraint startsAtStartOf(Activity act)
Returns a constraint constraining this activity to start at the start of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

startsAtEndOf

public jopt.csp.variable.CspConstraint startsAtEndOf(Activity act)
Returns a constraint constraining this activity to start at the end of act

Parameters:
act - activity this is being related to
Returns:
constraint between the activities

endsBeforeStartOf

public jopt.csp.variable.CspConstraint endsBeforeStartOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to end before the start of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

endsBeforeEndOf

public jopt.csp.variable.CspConstraint endsBeforeEndOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to end before the end of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

endsAfterStartOf

public jopt.csp.variable.CspConstraint endsAfterStartOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to end after the start of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

endsAfterEndOf

public jopt.csp.variable.CspConstraint endsAfterEndOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to end after the end of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

endsAtStartOf

public jopt.csp.variable.CspConstraint endsAtStartOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to end at the start of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

endsAtEndOf

public jopt.csp.variable.CspConstraint endsAtEndOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to end at the end of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

startsBeforeStartOf

public jopt.csp.variable.CspConstraint startsBeforeStartOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to start before the start of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

startsBeforeEndOf

public jopt.csp.variable.CspConstraint startsBeforeEndOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to start before the end of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

startsAfterStartOf

public jopt.csp.variable.CspConstraint startsAfterStartOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to start after the start of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

startsAfterEndOf

public jopt.csp.variable.CspConstraint startsAfterEndOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to start after the end of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

startsAtStartOf

public jopt.csp.variable.CspConstraint startsAtStartOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to start at the start of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

startsAtEndOf

public jopt.csp.variable.CspConstraint startsAtEndOf(jopt.csp.variable.CspIntExpr expr)
Returns a constraint constraining this activity to start at the end of expr

Parameters:
expr - expr this is being related to
Returns:
constraint between the activities

updateGraph

public void updateGraph(jopt.csp.spi.arcalgorithm.graph.NodeArcGraph graph)
Adds nodes representing this expression to the node arc graph