lively.pt(400.0,29.0) 1940 29
TODO: DBVariable>>cnEquals is fuzzy about which inputs it recognizes, need to think about that.
// changed at Wed Jan 28 2015 10:48:58 GMT+0100 (Central Europe Standard Time) by timfelgentr
eff
this.addScript(function reset() {
    var g = this.get("Graph")
    always: {
        solver: g.deltablue
        this.getPosition().equals(pt(
                g.yearToX(g.year()),
                g.gdpToY(g.gdpPerYear[this.name][g.year()])
        ));
    }
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
<lively.morphic.Morph#B291F... - Country>
Tag:
run
save
Tests

-- ALL --
reset
Scripts
-
+
-
Connections
+
-- ALL --
all
ObjectEditor -- Country>>reset
X

Menu
// changed at Wed Jan 28 2015 11:26:25 GMT+0100 (Central Europe Standard Time) by timfelgentr
eff
this.addScript(function reset() {
    Global.bbb.unconstrainAll(this)
    bbb.unconstrainAll(this.slider)
    this.slider = this.get("Slider")
    this.submorphs.each(function(m) {
        if (m.name !== "Slider") {
            m.remove();
        }
    });
    this.loadData();
    this.deltablue = new Global.DBPlanner()
    this.cassowary = new Global.ClSimplexSolver()
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
<lively.morphic.Box#261C3... - Graph>
Tag:
run
save
Tests

-- ALL --
gdpToY
loadData
reset
year
yearToX
Scripts
-
+
-
Connections
+
-- ALL --
all
ObjectEditor -- Graph>>reset
X

Menu