Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active August 9, 2023 18:32
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/865511b800e1f0f450f0c1e6eb6dba85 to your computer and use it in GitHub Desktop.
Save kenwebb/865511b800e1f0f450f0c1e6eb6dba85 to your computer and use it in GitHub Desktop.
Planet Earth - Human Places
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Wed Aug 09 2023 14:32:03 GMT-0400 (GMT-04:00)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Planet Earth - Human Places
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: 865511b800e1f0f450f0c1e6eb6dba85
Keywords:
My Notes
--------
9 August 2023
I am writing this workbook to help test my new Xholon library: xhBinaryStringApi.js
see: ~/gwtspace/Xholon/Xholon/src/org/public/lib/xhBinaryStringApi.js
It will provide a simple Binary String world for an avatar to move around in.
see also: ~/gwtspace/Xholon/futureXholon/buildFutureXholonJSON.js
Drag into this Xholon app the main content of that .js file.
It will write an object using console.log.
]]></Notes>
<_-.XholonClass>
<PhysicalSystem/>
<Planet/>
<Continent/>
<Country/>
<Province/>
<City/>
</_-.XholonClass>
<xholonClassDetails>
<!--<Block>
<port name="height" connector="Height"/>
</Block>-->
</xholonClassDetails>
<PhysicalSystem>
<Planet roleName="Earth">
<Continent roleName="Africa">
<Country roleName="Egypt">
<Province roleName="Eeee">
<City roleName="Cairo"/>
</Province>
</Country>
</Continent>
<Continent roleName="Antarctica">
<Country roleName="Incognita">
<Province roleName="Ice Shelf">
<City roleName="Brrrr"/>
</Province>
</Country>
</Continent>
<Continent roleName="Asia">
<Country roleName="Nepal">
<Province roleName="Axxxx">
<City roleName="Kathmandu"/>
</Province>
</Country>
</Continent>
<Continent roleName="Australia">
<Country roleName="Australia">
<Province roleName="Www">
<City roleName="Perth"/>
</Province>
</Country>
</Continent>
<Continent roleName="Europe">
<Country roleName="Slovenia">
<Province roleName="Sss">
<City roleName="Ljubliana"/>
</Province>
</Country>
<Country roleName="Germany">
<Province roleName="Gggg">
<City roleName="Berlin"/>
</Province>
</Country>
</Continent>
<Continent roleName="North America">
<Country roleName="Canada">
<Province roleName="Ontario">
<City roleName="Ottawa"/>
</Province>
</Country>
<Country roleName="USA">
<Province roleName="Connecticut">
<City roleName="Greenwich"/>
</Province>
</Country>
</Continent>
<Continent roleName="South America">
<Country roleName="Ecuador">
<Province roleName="Aaa">
<City roleName="Quenca"/>
</Province>
</Country>
<Country roleName="Peru">
<Province roleName="Aaa">
<City roleName="Lima"/>
</Province>
</Country>
</Continent>
</Planet>
</PhysicalSystem>
<Blockbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var a = 123;
var b = 456;
var c = a * b;
if (console) {
console.log(c);
}
//# sourceURL=Blockbehavior.js
]]></Blockbehavior>
<Heightbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var myHeight, testing;
var beh = {
postConfigure: function() {
testing = Math.floor(Math.random() * 10);
myHeight = this.cnode.parent();
},
act: function() {
myHeight.println(this.toString());
},
toString: function() {
return "testing:" + testing;
}
}
//# sourceURL=Heightbehavior.js
]]></Heightbehavior>
<Brickbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
$wnd.xh.Brickbehavior = function Brickbehavior() {}
$wnd.xh.Brickbehavior.prototype.postConfigure = function() {
this.brick = this.cnode.parent();
this.iam = " red brick";
};
$wnd.xh.Brickbehavior.prototype.act = function() {
this.brick.println("I am a" + this.iam);
};
//# sourceURL=Brickbehavior.js
]]></Brickbehavior>
<Brickbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
console.log("I'm another brick behavior");
]]></Brickbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Height</title>
<rect id="PhysicalSystem/Block/Height" 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