public class GoalRow extends ArrayRow


Summary

Public constructors

GoalRow(Cache cache)

Public methods

void
abstract void
abstract void
abstract void
updateFromFinalVariable(
    LinearSystem system,
    SolverVariable variable,
    boolean removeFromDefinition
)
abstract void
updateFromRow(LinearSystem system, ArrayRow definition, boolean b)

Inherited methods

From androidx.constraintlayout.core.ArrayRow
ArrayRow
addError(LinearSystem system, int strength)
void
ArrayRow
createRowDimensionRatio(
    SolverVariable variableA,
    SolverVariable variableB,
    SolverVariable variableC,
    SolverVariable variableD,
    float ratio
)

Create a constraint to express A = B + (C - D) * ratio We use this for ratio, where for example Right = Left + (Bottom - Top) * percent

ArrayRow
createRowEqualDimension(
    float currentWeight,
    float totalWeights,
    float nextWeight,
    SolverVariable variableStartA,
    int marginStartA,
    SolverVariable variableEndA,
    int marginEndA,
    SolverVariable variableStartB,
    int marginStartB,
    SolverVariable variableEndB,
    int marginEndB
)
ArrayRow
createRowEqualMatchDimensions(
    float currentWeight,
    float totalWeights,
    float nextWeight,
    SolverVariable variableStartA,
    SolverVariable variableEndA,
    SolverVariable variableStartB,
    SolverVariable variableEndB
)
ArrayRow
createRowEquals(SolverVariable variable, int value)
ArrayRow
createRowEquals(
    SolverVariable variableA,
    SolverVariable variableB,
    int margin
)
ArrayRow
ArrayRow
createRowGreaterThan(
    SolverVariable variableA,
    SolverVariable variableB,
    SolverVariable slack,
    int margin
)
ArrayRow
createRowLowerThan(
    SolverVariable variableA,
    SolverVariable variableB,
    SolverVariable slack,
    int margin
)
ArrayRow
createRowWithAngle(
    SolverVariable at,
    SolverVariable ab,
    SolverVariable bt,
    SolverVariable bb,
    float angleComponent
)

Create a constraint to express At + (Ab-At)/2 = Bt + (Bb-Bt)/2 - angle

SolverVariable
SolverVariable
getPivotCandidate(LinearSystem system, boolean[] avoid)
void

Used to initiate a goal from a given row (to see if we can remove an extra var)

boolean
SolverVariable
void
String
void
updateFromFinalVariable(
    LinearSystem system,
    SolverVariable variable,
    boolean removeFromDefinition
)
void
updateFromRow(
    LinearSystem system,
    ArrayRow definition,
    boolean removeFromDefinition
)
void
updateFromSynonymVariable(
    LinearSystem system,
    SolverVariable variable,
    boolean removeFromDefinition
)
void

Public constructors

GoalRow

Added in 1.1.0
public GoalRow(Cache cache)

Public methods

addError

public void addError(SolverVariable error)

addError

public abstract void addError(SolverVariable variable)

initFromRow

public abstract void initFromRow(LinearSystem.Row row)

updateFromFinalVariable

public abstract void updateFromFinalVariable(
    LinearSystem system,
    SolverVariable variable,
    boolean removeFromDefinition
)

updateFromRow

public abstract void updateFromRow(LinearSystem system, ArrayRow definition, boolean b)