SolverVariable
public class SolverVariable implements Comparable
Represents a given variable used in the linear expression solver.
Summary
Nested types |
|---|
public enum SolverVariable.TypeType of variables |
Constants |
|
|---|---|
static final int |
STRENGTH_BARRIER = 6 |
static final int |
|
static final int |
|
static final int |
STRENGTH_FIXED = 8 |
static final int |
STRENGTH_HIGH = 3 |
static final int |
STRENGTH_HIGHEST = 4 |
static final int |
STRENGTH_LOW = 1 |
static final int |
STRENGTH_MEDIUM = 2 |
static final int |
STRENGTH_NONE = 0 |
Public fields |
|
|---|---|
float |
|
int |
|
boolean |
|
boolean |
|
int |
|
int |
Public constructors |
|---|
SolverVariable(String name, SolverVariable.Type type)Base constructor |
SolverVariable(SolverVariable.Type type, String prefix) |
Public methods |
|
|---|---|
final void |
|
int |
|
String |
getName()Accessor for the name |
final void |
removeFromRow(ArrayRow row) |
void |
reset() |
void |
setFinalValue(LinearSystem system, float value) |
void |
|
void |
setSynonym( |
void |
setType(SolverVariable.Type type, String prefix) |
String |
toString()Override the toString() method to display the variable |
final void |
updateReferencesWithNewDefinition( |
Constants
Public fields
Public constructors
SolverVariable
Added in 1.1.1
public SolverVariable(String name, SolverVariable.Type type)
Base constructor
| Parameters | |
|---|---|
String name |
the variable name |
SolverVariable.Type type |
the type of the variable |
Public methods
getName
Added in 1.1.1
public String getName()
Accessor for the name
| Returns | |
|---|---|
String |
the name of the variable |
setSynonym
Added in 1.1.1
public void setSynonym(
LinearSystem system,
SolverVariable synonymVariable,
float value
)
updateReferencesWithNewDefinition
Added in 1.1.1
public final void updateReferencesWithNewDefinition(
LinearSystem system,
ArrayRow definition
)