<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/wb/ (C) Ken Webb Sun May 13 2012 20:15:25 GMT-0400 (EDT)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Bestiary
Description:
Url: http://www.primordion.com/Xholon/pulpcore/Bestiary/index.html
InternalName:
YoutubeId:
Keywords:
My Notes
--------
Under development
This is a Xholon webEdition implementation of the Xholon jvmEdition Bestiary.
Beasts (cats and humans) move around and exchange greetings. Cats change from white to gray as they mature. Humans are tan colored. You can dynamically add any other type of beast and beast behavior while the app is running. Licorice, the green-eyed black cat, is light green.
See also ::
http://primordion.com/collabapp/?p=24
https://sourceforge.net/apps/mediawiki/xholon/index.php?title=Licorice
]]></Notes>
<script implName="lang:python:inline:"><![CDATA[
print "Bestiary"
]]></script>
<script implName="lang:javascript:inline:"><![CDATA[
print("\nBestiary");
]]></script>
<_-.XholonClass>
<!-- types of domain objects -->
<BestiarySystem/>
<Bestiary/>
<Grid/>
<Row/>
<GridCell>
<HabitatCell/>
</GridCell>
<Statistics/>
<Aggregator/>
<!-- Beasts -->
<Beasts/>
<Beast>
<Cat/>
<Human/>
</Beast>
<!-- Behaviors -->
<Behavior>
<Catbehavior/>
<Humanbehavior/>
</Behavior>
<!-- parts of a house -->
<Door/>
<WallSection/>
<HouseInteriorSection/>
<Porch/> <!-- the area just outside a door -->
<Entrance/> <!-- the area in a house just inside a door -->
</_-.XholonClass>
<xholonClassDetails>
<Bestiary xhType="XhtypePurePassiveObject"/>
<Grid xhType="XhtypeGridEntity"/>
<Row xhType="XhtypeGridEntity"/>
<!--<HabitatCell xhType="XhtypeGridEntityActivePassive">
<config instruction="Gmt"/>
</HabitatCell>-->
<Beasts xhType="XhtypePureActiveObject"/>
<Cat xhType="XhtypePureActiveObject"/>
<Human xhType="XhtypePureActiveObject"/>
<XholonClass xhType="XhtypePureContainer"/>
</xholonClassDetails>
<BestiarySystem>
<Bestiary>
<Beasts>
<!-- initial inhabitants of the grid at runtime -->
<Cat multiplicity="10">
<MovingCatbehavior/>
<GrowingCatbehavior/>
<FreedomOfMovementCatbehavior/>
</Cat>
<Human multiplicity="3">
<MovingHumanbehavior/>
<GreetingHumanbehavior/>
</Human>
</Beasts>
<Grid>
<Row multiplicity="20">
<HabitatCell multiplicity="20"/>
</Row>
</Grid>
</Bestiary>
</BestiarySystem>
<Blockbehavior implName="lang:python:inline:"><![CDATA[
]]></Blockbehavior>
<Blockbehavior implName="lang:javascript:inline:"><![CDATA[
]]></Blockbehavior>
<Catbehavior implName="lang:webEditionjs:inline:"><![CDATA[
function postConfigure() {
print("\nI'm Licorice, the green-eyed cat. I spend my time running around the Bestiary.");
}
function act() {
print("\nmeow");
}
]]></Catbehavior>
<Blockbehavior implName="lang:bsh:inline:"><![CDATA[
]]></Blockbehavior>
<Blockbehavior implName="lang:jruby:inline:"><![CDATA[
]]></Blockbehavior>
<Blockbehavior implName="lang:groovy:inline:"><![CDATA[
]]></Blockbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Bestiary</title>
<rect id="BestiarySystem" fill="#98FB98" height="50" width="50" x="25" y="0"/>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>