Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active March 8, 2017 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwebb/a08bcacd919bbed825aed5fe27718671 to your computer and use it in GitHub Desktop.
Save kenwebb/a08bcacd919bbed825aed5fe27718671 to your computer and use it in GitHub Desktop.
Test three types of OrNode
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Wed Mar 08 2017 10:01:56 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Test three types of OrNode
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: a08bcacd919bbed825aed5fe27718671
Keywords:
My Notes
--------
March 7, 2017
Test three types of OrNode:
OrNode
OrNodeNext
OrNodeRandom
Expected output for OrNodeNext:
three_50
two_49
one_48
one_48 preAct()
one_48 act()
one_48 postAct()
two_49 preAct()
two_49 act()
two_49 postAct()
three_50 preAct()
three_50 act()
three_50 postAct()
three_50 preAct()
three_50 act()
three_50 postAct()
...
]]></Notes>
<_-.XholonClass>
<PhysicalSystem/>
<Aaa/>
<Bbb/>
<Ccc/>
<One superClass="Script"/>
<Two superClass="Script"/>
<Three superClass="Script"/>
</_-.XholonClass>
<xholonClassDetails>
</xholonClassDetails>
<PhysicalSystem>
<!--<OrNode>
<Aaa><One><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></One></Aaa>
<Bbb><Two><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></Two></Bbb>
<Ccc><Three><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></Three></Ccc>
</OrNode>-->
<!-- loopMode="once" is the default OR loopMode="loop" -->
<!--<OrNodeNext loopMode="loop">
<One><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode;
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></One>
<Two><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode;
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></Two>
<Three><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode;
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></Three>
</OrNodeNext>-->
<OrNodeRandom>
<One><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode;
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></One>
<Two><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode;
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></Two>
<Three><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode;
me.println(me.name());
},
preAct: function() {
me.println(me.name() + " preAct()");
},
act: function() {
me.println(me.name() + " act()");
},
postAct: function() {
me.println(me.name() + " postAct()");
}
}
]]></Three>
</OrNodeRandom>
</PhysicalSystem>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>OrNodeNext</title>
<rect id="PhysicalSystem/OrNodeNext" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>One</title>
<rect id="PhysicalSystem/OrNodeNext/One" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment