public class SolverVariableValues implements ArrayRow.ArrayRowVariables


Store a set of variables and their values in an array-based linked list coupled with a custom hashmap.

Summary

Protected fields

final Cache

Public methods

void
add(SolverVariable v, float value, boolean removeFromDefinition)
void
boolean
void
void
divideByAmount(float amount)
float
get(SolverVariable variable)
int
SolverVariable
getVariable(int index)
float
getVariableValue(int index)
int
void
void
put(SolverVariable variable, float value)
float
remove(SolverVariable v, boolean removeFromDefinition)
int
String
float
use(ArrayRow definition, boolean removeFromDefinition)

Protected fields

mCache

Added in 1.1.0-rc01
protected final Cache mCache

Public methods

add

Added in 1.1.0-rc01
public void add(SolverVariable v, float value, boolean removeFromDefinition)

clear

Added in 1.1.0-rc01
public void clear()

contains

Added in 1.1.0-rc01
public boolean contains(SolverVariable variable)

display

Added in 1.1.0-rc01
public void display()

divideByAmount

Added in 1.1.0-rc01
public void divideByAmount(float amount)

get

Added in 1.1.0-rc01
public float get(SolverVariable variable)

getCurrentSize

Added in 1.1.0-rc01
public int getCurrentSize()

getVariable

Added in 1.1.0-rc01
public SolverVariable getVariable(int index)

getVariableValue

Added in 1.1.0-rc01
public float getVariableValue(int index)

indexOf

Added in 1.1.0-rc01
public int indexOf(SolverVariable variable)

invert

Added in 1.1.0-rc01
public void invert()

put

Added in 1.1.0-rc01
public void put(SolverVariable variable, float value)

remove

Added in 1.1.0-rc01
public float remove(SolverVariable v, boolean removeFromDefinition)

sizeInBytes

Added in 1.1.0-rc01
public int sizeInBytes()

toString

public String toString()

use

Added in 1.1.0-rc01
public float use(ArrayRow definition, boolean removeFromDefinition)