public class LSBlackBoxEvaluationPoint
extends java.lang.Object
Note: This information is used by the solver to drive the solution process. You must be careful about the data you provide: if an incorrect value is given, the solver may have an unexpected behavior.
LSBlackBoxContext.createEvaluationPoint(),
LSBlackBoxContext.getEvaluationPoint(int pos)| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(double value)
Adds a double argument with the given value.
|
void |
addArgument(long value)
Adds an integer argument with the given value.
|
boolean |
equals(java.lang.Object obj) |
LSArray |
getArrayReturnValue()
Returns the return value of this evaluation point.
|
double |
getDoubleArgument(int pos)
Returns the value of the argument at the given position.
|
double |
getDoubleReturnValue()
Returns the return value of this evaluation point.
|
long |
getIntArgument(int pos)
Returns the value of the argument at the given position.
|
long |
getIntReturnValue()
Returns the return value of this evaluation point.
|
int |
hashCode() |
boolean |
isArrayReturnValue()
Returns true if the black-box function associated with this evaluation point
is an array function, false otherwise.
|
boolean |
isDoubleArgument(int pos)
Returns true if the argument at this given position is a double, false otherwise.
|
boolean |
isDoubleReturnValue()
Returns true if the black-box function associated with this evaluation point
is a double function, false otherwise.
|
boolean |
isIntArgument(int pos)
Returns true if the argument at this given position is an integer, false otherwise.
|
boolean |
isIntReturnValue()
Returns true if the black-box function associated with this evaluation point
is an integer function, false otherwise.
|
void |
setArgument(int pos,
double value)
Sets the value of the argument at the given position.
|
void |
setArgument(int pos,
long value)
Sets the value of the argument at the given position.
|
void |
setReturnValue(double value)
Sets the return value of this evaluation point.
|
void |
setReturnValue(double[] value)
Sets the return value of this evaluation point.
|
void |
setReturnValue(long value)
Sets the return value of this evaluation point.
|
void |
setReturnValue(long[] value)
Sets the return value of this evaluation point.
|
public void addArgument(long value)
LSState.Stopped.value - Value of the argument.public void addArgument(double value)
LSState.Stopped.value - Value of the argument.public void setArgument(int pos,
long value)
LSState.Stopped.pos - Position in the argument list.value - Value of the argument.public void setArgument(int pos,
double value)
LSState.Stopped.pos - Position in the argument list.value - Value of the argument.public void setReturnValue(long value)
LSState.Stopped.value - Return value of this point.public void setReturnValue(double value)
LSState.Stopped.value - Return value of this point.public void setReturnValue(long[] value)
LSState.Stopped.value - Return value of this point.public void setReturnValue(double[] value)
LSState.Stopped.value - Return value of this point.public boolean isIntReturnValue()
getIntReturnValue().
Only allowed in state LSState.Stopped.public boolean isDoubleReturnValue()
getDoubleReturnValue().
Only allowed in state LSState.Stopped.public boolean isArrayReturnValue()
getArrayReturnValue().
Only allowed in state LSState.Stopped.public boolean isIntArgument(int pos)
getIntArgument(int).
Only allowed in state LSState.Stopped.pos - Position in the argument list.public boolean isDoubleArgument(int pos)
getDoubleArgument(int).
Only allowed in state LSState.Stopped.pos - Position in the argument list.public long getIntReturnValue()
LSState.Stopped.public double getDoubleReturnValue()
LSState.Stopped.public LSArray getArrayReturnValue()
LSState.Stopped.public long getIntArgument(int pos)
LSState.Stopped.pos - Position in the argument list.public double getDoubleArgument(int pos)
LSState.Stopped.pos - Position in the argument list.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object