class GoalRow : ArrayRow


Summary

Public constructors

GoalRow(cache: Cache!)

Public functions

Unit
abstract Unit
abstract Unit
abstract Unit
updateFromFinalVariable(
    system: LinearSystem!,
    variable: SolverVariable!,
    removeFromDefinition: Boolean
)
abstract Unit
updateFromRow(system: LinearSystem!, definition: ArrayRow!, b: Boolean)

Inherited functions

From androidx.constraintlayout.core.ArrayRow
ArrayRow!
addError(system: LinearSystem!, strength: Int)
Unit
ArrayRow!
createRowDimensionRatio(
    variableA: SolverVariable!,
    variableB: SolverVariable!,
    variableC: SolverVariable!,
    variableD: SolverVariable!,
    ratio: Float
)

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(
    currentWeight: Float,
    totalWeights: Float,
    nextWeight: Float,
    variableStartA: SolverVariable!,
    marginStartA: Int,
    variableEndA: SolverVariable!,
    marginEndA: Int,
    variableStartB: SolverVariable!,
    marginStartB: Int,
    variableEndB: SolverVariable!,
    marginEndB: Int
)
ArrayRow!
createRowEqualMatchDimensions(
    currentWeight: Float,
    totalWeights: Float,
    nextWeight: Float,
    variableStartA: SolverVariable!,
    variableEndA: SolverVariable!,
    variableStartB: SolverVariable!,
    variableEndB: SolverVariable!
)
ArrayRow!
createRowEquals(variable: SolverVariable!, value: Int)
ArrayRow!
createRowEquals(
    variableA: SolverVariable!,
    variableB: SolverVariable!,
    margin: Int
)
ArrayRow!
ArrayRow!
createRowGreaterThan(
    variableA: SolverVariable!,
    variableB: SolverVariable!,
    slack: SolverVariable!,
    margin: Int
)
ArrayRow!
createRowLowerThan(
    variableA: SolverVariable!,
    variableB: SolverVariable!,
    slack: SolverVariable!,
    margin: Int
)
ArrayRow!
createRowWithAngle(
    at: SolverVariable!,
    ab: SolverVariable!,
    bt: SolverVariable!,
    bb: SolverVariable!,
    angleComponent: Float
)

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

SolverVariable!
SolverVariable!
Unit

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

Boolean
SolverVariable!
Unit
String!
Unit
updateFromFinalVariable(
    system: LinearSystem!,
    variable: SolverVariable!,
    removeFromDefinition: Boolean
)
Unit
updateFromRow(
    system: LinearSystem!,
    definition: ArrayRow!,
    removeFromDefinition: Boolean
)
Unit
updateFromSynonymVariable(
    system: LinearSystem!,
    variable: SolverVariable!,
    removeFromDefinition: Boolean
)
Unit

Public constructors

GoalRow

Added in 1.1.0
GoalRow(cache: Cache!)

Public functions

addError

fun addError(error: SolverVariable!): Unit

addError

abstract fun addError(variable: SolverVariable!): Unit

initFromRow

abstract fun initFromRow(row: LinearSystem.Row!): Unit

updateFromFinalVariable

abstract fun updateFromFinalVariable(
    system: LinearSystem!,
    variable: SolverVariable!,
    removeFromDefinition: Boolean
): Unit

updateFromRow

abstract fun updateFromRow(system: LinearSystem!, definition: ArrayRow!, b: Boolean): Unit