public class LSEvaluationPoint
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.
LSSurrogateParameters.createEvaluationPoint(),
LSSurrogateParameters.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 external 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 external 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 external 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.Modeling or LSState.Stopped.value - Value of the argument.public void addArgument(double value)
LSState.Modeling or LSState.Stopped.value - Value of the argument.public void setArgument(int pos,
long value)
LSState.Modeling or LSState.Stopped.pos - Position in the argument list.value - Value of the argument.public void setArgument(int pos,
double value)
LSState.Modeling or LSState.Stopped.pos - Position in the argument list.value - Value of the argument.public void setReturnValue(long value)
LSState.Modeling or LSState.Stopped.value - Return value of this point.public void setReturnValue(double value)
LSState.Modeling or LSState.Stopped.value - Return value of this point.public void setReturnValue(long[] value)
LSState.Modeling or LSState.Stopped.value - Return value of this point.public void setReturnValue(double[] value)
LSState.Modeling or LSState.Stopped.value - Return value of this point.public boolean isIntReturnValue()
getIntReturnValue().public boolean isDoubleReturnValue()
getDoubleReturnValue().public boolean isArrayReturnValue()
getArrayReturnValue().public boolean isIntArgument(int pos)
getIntArgument(int).pos - Position in the argument list.public boolean isDoubleArgument(int pos)
getDoubleArgument(int).pos - Position in the argument list.public long getIntReturnValue()
public double getDoubleReturnValue()
public LSArray getArrayReturnValue()
public long getIntArgument(int pos)
pos - Position in the argument list.public double getDoubleArgument(int pos)
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