Package com.artelys.kalis
Class KTaskSerializer
- java.lang.Object
-
- com.artelys.kalis.KBranchingScheme
-
- com.artelys.kalis.KTaskSerializer
-
public class KTaskSerializer extends KBranchingScheme
Task-based branching strategy
A custom scheduling optimization strategy can be specified by using the
KTaskSerializer branching scheme to select the task to be scheduled and value
choice heuristics for its start, duration and assignments variables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KTaskSerializer.varOrder
Variable branching orders for each task
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KBranchingScheme
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KTaskSerializer(long cPtr, boolean cMemoryOwn)
KTaskSerializer(KTaskArray tasks)
Primary constructor (default strategy)KTaskSerializer(KTaskArray tasks, int discrepancyLimit)
Primary constructor (default strategy)KTaskSerializer(KTaskArray tasks, int discrepancyLimit, int varOrder)
Primary constructor (default strategy)KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, an optional discrepancy limit and an
optional order for branching on variables.KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, int discrepancyLimit)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, an optional discrepancy limit and an
optional order for branching on variables.KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, int discrepancyLimit, int varOrder)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, an optional discrepancy limit and an
optional order for branching on variables.KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, KVariableSelector assignmentVariableSelector, KValueSelector assignmentValueSelector)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, a variable selector for assignments (
including providing, producing, requiring and consumming variables),
an optional discrepancy limit and an optional order for branching on
variables.KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, KVariableSelector assignmentVariableSelector, KValueSelector assignmentValueSelector, int discrepancyLimit)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, a variable selector for assignments (
including providing, producing, requiring and consumming variables),
an optional discrepancy limit and an optional order for branching on
variables.KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, KVariableSelector assignmentVariableSelector, KValueSelector assignmentValueSelector, int discrepancyLimit, int varOrder)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, a variable selector for assignments (
including providing, producing, requiring and consumming variables),
an optional discrepancy limit and an optional order for branching on
variables.KTaskSerializer(KTaskSerializer taskSerializer)
Copy constructorKTaskSerializer(com.artelys.kalis.SWIGTYPE_p_KTaskSerializer_I taskSerializer)
Constructor with KTaskSerializer_I*
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
KBranchingScheme
getCopyPtr()
Get a copy pointerprotected static long
getCPtr(KTaskSerializer obj)
KBranchingScheme
getInstanceCopyPtr(KProblem problem)
-
Methods inherited from class com.artelys.kalis.KBranchingScheme
_finishedBranching, _freeAllocatedObjectsForBranching, _getNextBranch, _goDownBranch, _goUpBranch, _selectNextBranchingObject, getCPtr, getGoDownDescription, getName, getProblem, printName, setSolver_I_ptr, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KTaskSerializer
protected KTaskSerializer(long cPtr, boolean cMemoryOwn)
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, int discrepancyLimit, int varOrder)
Primary constructor (default strategy)
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, int discrepancyLimit)
Primary constructor (default strategy)
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks)
Primary constructor (default strategy)
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, int discrepancyLimit, int varOrder)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, an optional discrepancy limit and an
optional order for branching on variables.
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, int discrepancyLimit)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, an optional discrepancy limit and an
optional order for branching on variables.
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, an optional discrepancy limit and an
optional order for branching on variables.
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, KVariableSelector assignmentVariableSelector, KValueSelector assignmentValueSelector, int discrepancyLimit, int varOrder)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, a variable selector for assignments (
including providing, producing, requiring and consumming variables),
an optional discrepancy limit and an optional order for branching on
variables.
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, KVariableSelector assignmentVariableSelector, KValueSelector assignmentValueSelector, int discrepancyLimit)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, a variable selector for assignments (
including providing, producing, requiring and consumming variables),
an optional discrepancy limit and an optional order for branching on
variables.
-
KTaskSerializer
public KTaskSerializer(KTaskArray tasks, KTaskSelector tsel, KValueSelector durationSelector, KValueSelector startSelector, KVariableSelector assignmentVariableSelector, KValueSelector assignmentValueSelector)
Constructor with a set of tasks, a task selector, a value selector for
the duration and start variables, a variable selector for assignments (
including providing, producing, requiring and consumming variables),
an optional discrepancy limit and an optional order for branching on
variables.
-
KTaskSerializer
public KTaskSerializer(com.artelys.kalis.SWIGTYPE_p_KTaskSerializer_I taskSerializer)
Constructor with KTaskSerializer_I*
-
KTaskSerializer
public KTaskSerializer(KTaskSerializer taskSerializer)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KTaskSerializer obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKBranchingScheme
-
delete
public void delete()
- Overrides:
delete
in classKBranchingScheme
-
getCopyPtr
public KBranchingScheme getCopyPtr()
Get a copy pointer- Overrides:
getCopyPtr
in classKBranchingScheme
-
getInstanceCopyPtr
public KBranchingScheme getInstanceCopyPtr(KProblem problem)
- Overrides:
getInstanceCopyPtr
in classKBranchingScheme
-
-