Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/constraint
ConstraintBinding
Class ConstraintBinding
Hierarchy
ConstraintBinding
Implements
ConstraintVariable
Debug
Index
Constructors
constructor
Properties
condition
Count
constraint
Flags
id
name
owner
state
strength
Constrained
Flag
Constraining
Flag
Accessors
coefficient
constant
terms
variable
Methods
add
Constraint
Condition
constrain
debug
did
Set
State
did
Start
Constraining
did
Stop
Constraining
divide
evaluate
Constraint
Variable
is
Constant
is
Constrained
is
Constraining
is
Dummy
is
External
is
Invalid
minus
negative
on
Set
State
on
Start
Constraining
on
Stop
Constraining
plus
remove
Constraint
Condition
set
Constraint
Flags
set
State
start
Constraining
stop
Constraining
times
to
String
update
Constraint
Solution
update
Constraint
Variable
will
Set
State
will
Start
Constraining
will
Stop
Constraining
Constructors
constructor
new
Constraint
Binding
(
owner
:
ConstraintScope
, name
:
string
, state
:
number
, strength
:
number
)
:
ConstraintBinding
Parameters
owner:
ConstraintScope
name:
string
state:
number
strength:
number
Returns
ConstraintBinding
Properties
Readonly
condition
Count
condition
Count
:
number
Readonly
constraint
Flags
constraint
Flags
:
number
Readonly
id
id
:
number
Readonly
name
name
:
string
Readonly
owner
owner
:
ConstraintScope
Readonly
state
state
:
number
Readonly
strength
strength
:
number
Static
Readonly
Constrained
Flag
Constrained
Flag
:
number
Static
Readonly
Constraining
Flag
Constraining
Flag
:
number
Accessors
coefficient
get
coefficient
(
)
:
number
Returns
number
constant
get
constant
(
)
:
number
Returns
number
terms
get
terms
(
)
:
ConstraintMap
<
ConstraintVariable
,
number
>
Returns
ConstraintMap
<
ConstraintVariable
,
number
>
variable
get
variable
(
)
:
ConstraintVariable
Returns
ConstraintVariable
Methods
add
Constraint
Condition
add
Constraint
Condition
(
constraint
:
Constraint
, solver
:
ConstraintSolver
)
:
void
Parameters
constraint:
Constraint
solver:
ConstraintSolver
Returns
void
constrain
constrain
(
constrained
?:
boolean
)
:
ConstraintBinding
Parameters
Optional
constrained:
boolean
Returns
ConstraintBinding
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
Protected
did
Set
State
did
Set
State
(
newState
:
number
, oldState
:
number
)
:
void
Parameters
newState:
number
oldState:
number
Returns
void
did
Start
Constraining
did
Start
Constraining
(
)
:
void
Returns
void
did
Stop
Constraining
did
Stop
Constraining
(
)
:
void
Returns
void
divide
divide
(
scalar
:
number
)
:
ConstraintExpression
Parameters
scalar:
number
Returns
ConstraintExpression
evaluate
Constraint
Variable
evaluate
Constraint
Variable
(
)
:
void
Returns
void
is
Constant
is
Constant
(
)
:
boolean
Returns
boolean
is
Constrained
is
Constrained
(
)
:
boolean
Returns
boolean
is
Constraining
is
Constraining
(
)
:
boolean
Returns
boolean
is
Dummy
is
Dummy
(
)
:
boolean
Returns
boolean
is
External
is
External
(
)
:
boolean
Returns
boolean
is
Invalid
is
Invalid
(
)
:
boolean
Returns
boolean
minus
minus
(
that
:
AnyConstraintExpression
)
:
ConstraintExpression
Parameters
that:
AnyConstraintExpression
Returns
ConstraintExpression
negative
negative
(
)
:
ConstraintTerm
Returns
ConstraintTerm
Protected
on
Set
State
on
Set
State
(
newState
:
number
, oldState
:
number
)
:
void
Parameters
newState:
number
oldState:
number
Returns
void
on
Start
Constraining
on
Start
Constraining
(
)
:
void
Returns
void
on
Stop
Constraining
on
Stop
Constraining
(
)
:
void
Returns
void
plus
plus
(
that
:
AnyConstraintExpression
)
:
ConstraintExpression
Parameters
that:
AnyConstraintExpression
Returns
ConstraintExpression
remove
Constraint
Condition
remove
Constraint
Condition
(
constraint
:
Constraint
, solver
:
ConstraintSolver
)
:
void
Parameters
constraint:
Constraint
solver:
ConstraintSolver
Returns
void
set
Constraint
Flags
set
Constraint
Flags
(
constraintFlags
:
number
)
:
void
Parameters
constraintFlags:
number
Returns
void
set
State
set
State
(
newState
:
number
)
:
void
Parameters
newState:
number
Returns
void
start
Constraining
start
Constraining
(
)
:
void
Returns
void
stop
Constraining
stop
Constraining
(
)
:
void
Returns
void
times
times
(
scalar
:
number
)
:
ConstraintExpression
Parameters
scalar:
number
Returns
ConstraintExpression
to
String
to
String
(
)
:
string
Returns
string
update
Constraint
Solution
update
Constraint
Solution
(
newState
:
number
)
:
void
Parameters
newState:
number
Returns
void
update
Constraint
Variable
update
Constraint
Variable
(
)
:
void
Returns
void
Protected
will
Set
State
will
Set
State
(
newState
:
number
, oldState
:
number
)
:
void
Parameters
newState:
number
oldState:
number
Returns
void
will
Start
Constraining
will
Start
Constraining
(
)
:
void
Returns
void
will
Stop
Constraining
will
Stop
Constraining
(
)
:
void
Returns
void
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Constraint
Constraint
Binding
constructor
condition
Count
constraint
Flags
id
name
owner
state
strength
Constrained
Flag
Constraining
Flag
coefficient
constant
terms
variable
add
Constraint
Condition
constrain
debug
did
Set
State
did
Start
Constraining
did
Stop
Constraining
divide
evaluate
Constraint
Variable
is
Constant
is
Constrained
is
Constraining
is
Dummy
is
External
is
Invalid
minus
negative
on
Set
State
on
Start
Constraining
on
Stop
Constraining
plus
remove
Constraint
Condition
set
Constraint
Flags
set
State
start
Constraining
stop
Constraining
times
to
String
update
Constraint
Solution
update
Constraint
Variable
will
Set
State
will
Start
Constraining
will
Stop
Constraining
Constraint
Constant
Constraint
Dummy
Constraint
Error
Constraint
Group
Constraint
Invalid
Constraint
Map
Constraint
Product
Constraint
Row
Constraint
Slack
Constraint
Solver
Constraint
Sum
Constraint
Expression
Constraint
Key
Constraint
Scope
Constraint
Symbol
Constraint
Term
Constraint
Variable
Any
Constraint
Expression
Any
Constraint
Strength
Constraint
Relation
Constraint
Strength
Constraint
Strength
Init
Constraint
Expression
Constraint
Key
Constraint
Strength
Constraint
Symbol
Constraint
Term
Generated using
TypeDoc