class PriorityGoalRow : ArrayRow


Implements a row containing goals taking in account priorities.

Summary

Public constructors

Public functions

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

Inherited functions

From androidx.constraintlayout.core.ArrayRow
ArrayRow!
addError(system: LinearSystem!, strength: Int)
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!
Unit

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

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

Public constructors

PriorityGoalRow

Added in 1.1.0-rc01
PriorityGoalRow(cache: Cache!)

Public functions

addError

fun addError(error: SolverVariable!): Unit

addError

abstract fun addError(variable: SolverVariable!): Unit

clear

fun clear(): Unit

getPivotCandidate

fun getPivotCandidate(system: LinearSystem!, avoid: BooleanArray!): SolverVariable!

initFromRow

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

isEmpty

fun isEmpty(): Boolean

toString

fun toString(): String!

updateFromFinalVariable

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

updateFromRow

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

updateFromRow

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