C++ Reference: class SequenceVar
Note: This documentation is automatically generated.
A sequence variable is a variable whose domain is a set of possible orderings of the interval variables. It allows ordering of tasks. It has two sets of methods: ComputePossibleFirstsAndLasts(), which returns the list of interval variables that can be ranked first or last; and RankFirst/RankNotFirst/RankLast/RankNotLast, which can be used to create the search decision.Method | |
---|---|
Accept | Return type: Arguments: Accepts the given visitor. |
ActiveHorizonRange | Return type: Arguments: Returns the minimum start min and the maximum end max of all unranked interval vars in the sequence. |
ComputePossibleFirstsAndLasts | Return type: Arguments: Computes the set of indices of interval variables that can be ranked first in the set of unranked activities. |
ComputeStatistics | Return type: Arguments: Compute statistics on the sequence. |
DebugString | Return type: |
DurationRange | Return type: Arguments: Returns the minimum and maximum duration of combined interval vars in the sequence. |
FillSequence | Return type: Arguments: Clears 'rank_first' and 'rank_last', and fills them with the intervals in the order of the ranks. If all variables are ranked, 'rank_first' will contain all variables, and 'rank_last' will contain none. 'unperformed' will contains all such interval variables. rank_first and rank_last represents different directions. rank_first[0] corresponds to the first interval of the sequence. rank_last[0] corresponds to the last interval of the sequence. |
HorizonRange | Return type: Arguments: Returns the minimum start min and the maximum end max of all interval vars in the sequence. |
Interval | Return type: Arguments: Returns the index_th interval of the sequence. |
Next | Return type: Arguments: Returns the next of the index_th interval of the sequence. |
RankFirst | Return type: Arguments: Ranks the index_th interval var first of all unranked interval vars. After that, it will no longer be considered ranked. |
RankLast | Return type: Arguments: Ranks the index_th interval var first of all unranked interval vars. After that, it will no longer be considered ranked. |
RankNotFirst | Return type: Arguments: Indicates that the index_th interval var will not be ranked first of all currently unranked interval vars. |
RankNotLast | Return type: Arguments: Indicates that the index_th interval var will not be ranked first of all currently unranked interval vars. |
RankSequence | Return type: Arguments: Applies the following sequence of ranks, ranks first, then rank last. rank_first and rank_last represents different directions. rank_first[0] corresponds to the first interval of the sequence. rank_last[0] corresponds to the last interval of the sequence. All intervals in the unperformed vector will be marked as such. |
SequenceVar | Arguments: |
~SequenceVar | |
size | Return type: Returns the number of interval vars in the sequence. |