public class LSPhase
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getIterationLimit()
Gets the number of iterations of this phase.
|
LocalSolver |
getLocalSolver()
Returns the LocalSolver object associated to this phase.
|
int |
getOptimizedObjective()
Gets the index of the optimized objective.
|
LSStatistics |
getStatistics()
Gets the statistics of this phase.
|
int |
getTimeLimit()
Gets the time limit of this phase in seconds.
|
int |
hashCode() |
boolean |
isEnabled()
Returns true if the phase is enabled, False otherwise.
|
void |
setEnabled(boolean enabled)
Sets the enabled status of this phase.
|
void |
setIterationLimit(long iterationLimit)
Sets the number of iterations of this phase.
|
void |
setOptimizedObjective(int objectiveIndex)
Sets the optimized objective of this phase.
|
void |
setTimeLimit(int timeLimit)
Sets the time limit of this phase in seconds.
|
java.lang.String |
toString()
Returns a String representation of this phase.
|
public LocalSolver getLocalSolver()
public void setTimeLimit(int timeLimit)
LSState.Stopped.timeLimit - Time limit in seconds.public int getTimeLimit()
LSState.Paused or LSState.Stopped.setTimeLimit(int)public void setIterationLimit(long iterationLimit)
LSState.Stopped.iterationLimit - Iteration limit.public long getIterationLimit()
LSState.Paused or LSState.Stopped.setIterationLimit(long)public void setOptimizedObjective(int objectiveIndex)
LSState.Stopped.objectiveIndex - Index of the optimized objective.public int getOptimizedObjective()
LSState.Paused or LSState.Stopped.setOptimizedObjective(int)public void setEnabled(boolean enabled)
LSModel.removeObjective(int). By default, a
phase is enabled. Only allowed in state LSState.Stopped.enabled - True to enable the phase, False to disable itpublic boolean isEnabled()
LSState.Paused or LSState.Stopped.public LSStatistics getStatistics()
LSState.Paused or
LSState.Stopped. Note that for performance reasons, this function
always returns the same object.LSStatisticspublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object