| OLD | NEW |
| 1 library; | 1 library; |
| 2 import self as self; | 2 import self as self; |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 | 4 |
| 5 class DeltaBlue extends core::Object { | 5 class DeltaBlue extends core::Object { |
| 6 constructor •() → void | 6 constructor •() → void |
| 7 ; | 7 ; |
| 8 method run() → void | 8 method run() → void |
| 9 ; | 9 ; |
| 10 } | 10 } |
| 11 class Strength extends core::Object { | 11 class Strength extends core::Object { |
| 12 final field core::int value; | 12 final field core::int value; |
| 13 final field core::String name; | 13 final field core::String name; |
| 14 const constructor •(dynamic value, dynamic name) → void | 14 const constructor •(core::int value, core::String name) → void |
| 15 ; | 15 ; |
| 16 method nextWeaker() → self::Strength | 16 method nextWeaker() → self::Strength |
| 17 ; | 17 ; |
| 18 static method stronger(self::Strength s1, self::Strength s2) → core::bool | 18 static method stronger(self::Strength s1, self::Strength s2) → core::bool |
| 19 ; | 19 ; |
| 20 static method weaker(self::Strength s1, self::Strength s2) → core::bool | 20 static method weaker(self::Strength s1, self::Strength s2) → core::bool |
| 21 ; | 21 ; |
| 22 static method weakest(self::Strength s1, self::Strength s2) → self::Strength | 22 static method weakest(self::Strength s1, self::Strength s2) → self::Strength |
| 23 ; | 23 ; |
| 24 static method strongest(self::Strength s1, self::Strength s2) → self::Strength | 24 static method strongest(self::Strength s1, self::Strength s2) → self::Strength |
| 25 ; | 25 ; |
| 26 } | 26 } |
| 27 abstract class Constraint extends core::Object { | 27 abstract class Constraint extends core::Object { |
| 28 final field self::Strength strength; | 28 final field self::Strength strength; |
| 29 const constructor •(dynamic strength) → void | 29 const constructor •(self::Strength strength) → void |
| 30 ; | 30 ; |
| 31 abstract method isSatisfied() → core::bool; | 31 abstract method isSatisfied() → core::bool; |
| 32 abstract method markUnsatisfied() → void; | 32 abstract method markUnsatisfied() → void; |
| 33 abstract method addToGraph() → void; | 33 abstract method addToGraph() → void; |
| 34 abstract method removeFromGraph() → void; | 34 abstract method removeFromGraph() → void; |
| 35 abstract method chooseMethod(core::int mark) → void; | 35 abstract method chooseMethod(core::int mark) → void; |
| 36 abstract method markInputs(core::int mark) → void; | 36 abstract method markInputs(core::int mark) → void; |
| 37 abstract method inputsKnown(core::int mark) → core::bool; | 37 abstract method inputsKnown(core::int mark) → core::bool; |
| 38 abstract method output() → self::Variable; | 38 abstract method output() → self::Variable; |
| 39 abstract method execute() → void; | 39 abstract method execute() → void; |
| 40 abstract method recalculate() → void; | 40 abstract method recalculate() → void; |
| 41 method addConstraint() → void | 41 method addConstraint() → void |
| 42 ; | 42 ; |
| 43 method satisfy(dynamic mark) → self::Constraint | 43 method satisfy(dynamic mark) → self::Constraint |
| 44 ; | 44 ; |
| 45 method destroyConstraint() → void | 45 method destroyConstraint() → void |
| 46 ; | 46 ; |
| 47 method isInput() → core::bool | 47 method isInput() → core::bool |
| 48 ; | 48 ; |
| 49 } | 49 } |
| 50 abstract class UnaryConstraint extends self::Constraint { | 50 abstract class UnaryConstraint extends self::Constraint { |
| 51 final field self::Variable myOutput; | 51 final field self::Variable myOutput; |
| 52 field core::bool satisfied; | 52 field core::bool satisfied; |
| 53 constructor •(dynamic myOutput, self::Strength strength) → void | 53 constructor •(self::Variable myOutput, self::Strength strength) → void |
| 54 ; | 54 ; |
| 55 method addToGraph() → void | 55 method addToGraph() → void |
| 56 ; | 56 ; |
| 57 method chooseMethod(core::int mark) → void | 57 method chooseMethod(core::int mark) → void |
| 58 ; | 58 ; |
| 59 method isSatisfied() → core::bool | 59 method isSatisfied() → core::bool |
| 60 ; | 60 ; |
| 61 method markInputs(core::int mark) → void | 61 method markInputs(core::int mark) → void |
| 62 ; | 62 ; |
| 63 method output() → self::Variable | 63 method output() → self::Variable |
| (...skipping 18 matching lines...) Expand all Loading... |
| 82 ; | 82 ; |
| 83 method isInput() → core::bool | 83 method isInput() → core::bool |
| 84 ; | 84 ; |
| 85 method execute() → void | 85 method execute() → void |
| 86 ; | 86 ; |
| 87 } | 87 } |
| 88 abstract class BinaryConstraint extends self::Constraint { | 88 abstract class BinaryConstraint extends self::Constraint { |
| 89 field self::Variable v1; | 89 field self::Variable v1; |
| 90 field self::Variable v2; | 90 field self::Variable v2; |
| 91 field core::int direction; | 91 field core::int direction; |
| 92 constructor •(dynamic v1, dynamic v2, self::Strength strength) → void | 92 constructor •(self::Variable v1, self::Variable v2, self::Strength strength) →
void |
| 93 ; | 93 ; |
| 94 method chooseMethod(core::int mark) → void | 94 method chooseMethod(core::int mark) → void |
| 95 ; | 95 ; |
| 96 method addToGraph() → void | 96 method addToGraph() → void |
| 97 ; | 97 ; |
| 98 method isSatisfied() → core::bool | 98 method isSatisfied() → core::bool |
| 99 ; | 99 ; |
| 100 method markInputs(core::int mark) → void | 100 method markInputs(core::int mark) → void |
| 101 ; | 101 ; |
| 102 method input() → self::Variable | 102 method input() → self::Variable |
| 103 ; | 103 ; |
| 104 method output() → self::Variable | 104 method output() → self::Variable |
| 105 ; | 105 ; |
| 106 method recalculate() → void | 106 method recalculate() → void |
| 107 ; | 107 ; |
| 108 method markUnsatisfied() → void | 108 method markUnsatisfied() → void |
| 109 ; | 109 ; |
| 110 method inputsKnown(core::int mark) → core::bool | 110 method inputsKnown(core::int mark) → core::bool |
| 111 ; | 111 ; |
| 112 method removeFromGraph() → void | 112 method removeFromGraph() → void |
| 113 ; | 113 ; |
| 114 } | 114 } |
| 115 class ScaleConstraint extends self::BinaryConstraint { | 115 class ScaleConstraint extends self::BinaryConstraint { |
| 116 final field self::Variable scale; | 116 final field self::Variable scale; |
| 117 final field self::Variable offset; | 117 final field self::Variable offset; |
| 118 constructor •(self::Variable src, dynamic scale, dynamic offset, self::Variabl
e dest, self::Strength strength) → void | 118 constructor •(self::Variable src, self::Variable scale, self::Variable offset,
self::Variable dest, self::Strength strength) → void |
| 119 ; | 119 ; |
| 120 method addToGraph() → void | 120 method addToGraph() → void |
| 121 ; | 121 ; |
| 122 method removeFromGraph() → void | 122 method removeFromGraph() → void |
| 123 ; | 123 ; |
| 124 method markInputs(core::int mark) → void | 124 method markInputs(core::int mark) → void |
| 125 ; | 125 ; |
| 126 method execute() → void | 126 method execute() → void |
| 127 ; | 127 ; |
| 128 method recalculate() → void | 128 method recalculate() → void |
| 129 ; | 129 ; |
| 130 } | 130 } |
| 131 class EqualityConstraint extends self::BinaryConstraint { | 131 class EqualityConstraint extends self::BinaryConstraint { |
| 132 constructor •(self::Variable v1, self::Variable v2, self::Strength strength) →
void | 132 constructor •(self::Variable v1, self::Variable v2, self::Strength strength) →
void |
| 133 ; | 133 ; |
| 134 method execute() → void | 134 method execute() → void |
| 135 ; | 135 ; |
| 136 } | 136 } |
| 137 class Variable extends core::Object { | 137 class Variable extends core::Object { |
| 138 field core::List<self::Constraint> constraints; | 138 field core::List<self::Constraint> constraints; |
| 139 field self::Constraint determinedBy; | 139 field self::Constraint determinedBy; |
| 140 field core::int mark; | 140 field core::int mark; |
| 141 field self::Strength walkStrength; | 141 field self::Strength walkStrength; |
| 142 field core::bool stay; | 142 field core::bool stay; |
| 143 field core::int value; | 143 field core::int value; |
| 144 final field core::String name; | 144 final field core::String name; |
| 145 constructor •(dynamic name, dynamic value) → void | 145 constructor •(core::String name, core::int value) → void |
| 146 ; | 146 ; |
| 147 method addConstraint(self::Constraint c) → void | 147 method addConstraint(self::Constraint c) → void |
| 148 ; | 148 ; |
| 149 method removeConstraint(self::Constraint c) → void | 149 method removeConstraint(self::Constraint c) → void |
| 150 ; | 150 ; |
| 151 } | 151 } |
| 152 class Planner extends core::Object { | 152 class Planner extends core::Object { |
| 153 field core::int currentMark; | 153 field core::int currentMark; |
| 154 constructor •() → void | 154 constructor •() → void |
| 155 ; | 155 ; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 static const field core::int BACKWARD; | 193 static const field core::int BACKWARD; |
| 194 static field self::Planner planner; | 194 static field self::Planner planner; |
| 195 static method main() → dynamic | 195 static method main() → dynamic |
| 196 ; | 196 ; |
| 197 static method chainTest(core::int n) → void | 197 static method chainTest(core::int n) → void |
| 198 ; | 198 ; |
| 199 static method projectionTest(core::int n) → void | 199 static method projectionTest(core::int n) → void |
| 200 ; | 200 ; |
| 201 static method change(self::Variable v, core::int newValue) → void | 201 static method change(self::Variable v, core::int newValue) → void |
| 202 ; | 202 ; |
| OLD | NEW |