Java Reference
Java Reference
PathOperator.java
Go to the documentation of this file.
64 public PathOperator(IntVar[] next_vars, IntVar[] path_vars, int number_of_base_nodes, boolean skip_locally_optimal_paths, boolean accept_path_end_base, LongToIntFunction start_empty_path_class) {
65 this(mainJNI.new_PathOperator(next_vars, path_vars, number_of_base_nodes, skip_locally_optimal_paths, accept_path_end_base, start_empty_path_class), true);
74 if (getClass() == PathOperator.class) mainJNI.PathOperator_reset(swigCPtr, this); else mainJNI.PathOperator_resetSwigExplicitPathOperator(swigCPtr, this);
88 return (getClass() == PathOperator.class) ? mainJNI.PathOperator_oneNeighbor(swigCPtr, this) : mainJNI.PathOperator_oneNeighborSwigExplicitPathOperator(swigCPtr, this);
95 if (getClass() == PathOperator.class) mainJNI.PathOperator_OnNodeInitialization(swigCPtr, this); else mainJNI.PathOperator_OnNodeInitializationSwigExplicitPathOperator(swigCPtr, this);
102 return (getClass() == PathOperator.class) ? mainJNI.PathOperator_restartAtPathStartOnSynchronize(swigCPtr, this) : mainJNI.PathOperator_restartAtPathStartOnSynchronizeSwigExplicitPathOperator(swigCPtr, this);
109 return (getClass() == PathOperator.class) ? mainJNI.PathOperator_onSamePathAsPreviousBase(swigCPtr, this, base_index) : mainJNI.PathOperator_onSamePathAsPreviousBaseSwigExplicitPathOperator(swigCPtr, this, base_index);
116 return (getClass() == PathOperator.class) ? mainJNI.PathOperator_getBaseNodeRestartPosition(swigCPtr, this, base_index) : mainJNI.PathOperator_getBaseNodeRestartPositionSwigExplicitPathOperator(swigCPtr, this, base_index);
123 if (getClass() == PathOperator.class) mainJNI.PathOperator_setNextBaseToIncrement(swigCPtr, this, base_index); else mainJNI.PathOperator_setNextBaseToIncrementSwigExplicitPathOperator(swigCPtr, this, base_index);
130 return (getClass() == PathOperator.class) ? mainJNI.PathOperator_ConsiderAlternatives(swigCPtr, this, base_index) : mainJNI.PathOperator_ConsiderAlternativesSwigExplicitPathOperator(swigCPtr, this, base_index);
137 return (getClass() == PathOperator.class) ? mainJNI.PathOperator_initPosition(swigCPtr, this) : mainJNI.PathOperator_initPositionSwigExplicitPathOperator(swigCPtr, this);
boolean onSamePathAsPreviousBase(long base_index)
Returns true if a base node has to be on the same path as the "previous" base node (base node of inde...
Definition: PathOperator.java:108
void setNextBaseToIncrement(long base_index)
Set the next base to increment on next iteration.
Definition: PathOperator.java:122
boolean initPosition()
Returns true if the operator needs to restart its initial position at each call to Start()
Definition: PathOperator.java:136
void swigDirectorDisconnect()
Definition: PathOperator.java:46
void swigTakeOwnership()
Definition: PathOperator.java:56
The class IntVar is a subset of IntExpr.
Definition: IntVarLocalSearchOperator.java:11
boolean ConsiderAlternatives(long base_index)
Indicates if alternatives should be considered when iterating over base nodes.
Definition: PathOperator.java:129
boolean restartAtPathStartOnSynchronize()
When the operator is being synchronized with a new solution (when Start() is called),...
Definition: PathOperator.java:101
Base class of the local search operators dedicated to path modifications (a path is a set of nodes li...
Definition: PathOperator.java:18
PathOperator(long cPtr, boolean cMemoryOwn)
Definition: PathOperator.java:21
long getBaseNodeRestartPosition(int base_index)
Returns the index of the node to which the base node of index base_index must be set to when it reach...
Definition: PathOperator.java:115
void OnNodeInitialization()
Called by OnStart() after initializing node information.
Definition: PathOperator.java:94
void swigReleaseOwnership()
Definition: PathOperator.java:51
long Prev(long node)
Returns the node before node in the current delta.
Definition: PathOperator.java:80
PathOperator(IntVar[] next_vars, IntVar[] path_vars, int number_of_base_nodes, boolean skip_locally_optimal_paths, boolean accept_path_end_base, LongToIntFunction start_empty_path_class)
Builds an instance of PathOperator from next and path variables.
Definition: PathOperator.java:64
boolean neighbor()
Definition: PathOperator.java:69