Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active July 29, 2025 14:22
Show Gist options
  • Save kenwebb/491cac73fba03a16ded3cc5b973bdfb0 to your computer and use it in GitHub Desktop.
Save kenwebb/491cac73fba03a16ded3cc5b973bdfb0 to your computer and use it in GitHub Desktop.
AI - House Entities
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Tue Jul 29 2025 10:21:27 GMT-0400 (Eastern Daylight Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: AI - House Entities
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: 491cac73fba03a16ded3cc5b973bdfb0 based on ec355ca8eda554d528341a0c7225ba3a "AI - Biological Cell Entities"
Keywords:
My Notes
--------
29 July 2025
]]></Notes>
<markdown><![CDATA[
% ollama run llama3
#### prompt
>>> Create a list of entities typically found inside a Canadian house.
Include all major furniture and appliances, plus 30 additional less common entities.
Use the singular form for each Entity name, for example "Table" rather than "Tables".
Use camel case for the Entity name, for example "DishWasher" rather than "Dish Washer".
Do not include an abbreviation as part of the entity name.
Present the list in csv format.
Include a name, description, and color for each entity, for example:
"Chair","An object that one person can sit on.","LightSeaGreen"
Include a header line: "Entity","Description","Color"
Here is the list of entities typically found inside a Canadian house:
"Entity","Description","Color"
"Table","A piece of furniture used to hold objects.","WoodenBrown"
"DishWasher","An appliance that cleans dishes and utensils.","SleekSilver"
"Couch","A long, upholstered piece of furniture for sitting or reclining.","CharcoalGrey"
"Lamp","An electric light source with a shade to direct the light.","CreamyWhite"
"Bedframe","The structural framework for a bed, often made of wood or metal.","WarmBeige"
"MicrowaveOven","A small electrical appliance that cooks food quickly.","FrostyMetal"
"ToiletBrush","A tool used to clean the inside of a toilet bowl.","MintGreen"
"Wardrobe","A tall, freestanding cabinet for storing clothing and accessories.","MahoganyWood"
"Bookshelf","A piece of furniture with shelves for holding books or other objects.","RichWalnut"
"DiningChair","A chair designed specifically for use at a dining table.","VelvetRed"
"Television","An electronic device that displays moving images and sounds.","SleekBlack"
"Refrigerator","A large appliance used to keep food cool or frozen.","FrostyMetal"
"Stove","A cooking appliance with burners, ovens, and sometimes a microwave.","WarmSteel"
"Sink","A plumbing fixture for washing hands, dishes, or other objects.","PorcelainWhite"
"BathroomMirror","A reflective surface hung on a wall in a bathroom.","SilveredGlass"
"DeskLamp","An electric light source used to illuminate a workspace.","ElegantChrome"
"Pillow","A cushion designed for resting the head or body.","SoftDowny"
"AlarmClock","A device that rings at a set time, often with an alarm sound.","SleekWhite"
"VacuumCleaner","An electrical appliance that sucks up dirt and dust from floors.","RichBlue"
"HairDryer","An electrical appliance used to dry human hair.","MetallicSilver"
"Blinds","Window coverings made of fabric or plastic that can be opened or closed.","SoftMisty"
"Curtains","Fabric panels hung on walls or windows to filter light and view.","LavenderPurple"
And here are 30 additional less common entities:
"Entity","Description","Color"
"Hammock","A suspended seat for lounging or sleeping, often made of fabric.","CoralPink"
"WickerBasket","A container woven from wicker or rattan, used to store items.","WarmBrown"
"IroningBoard","A flat surface used for smoothing wrinkles out of clothing.","SleekSteel"
"StepStool","A small, portable ladder used to reach high places.","RichWood"
"PicnicTablecloth","A large cloth used to cover a picnic table, often decorated with designs or patterns.","VibrantRed"
"MagneticBoard","A surface covered in magnetized material, used for displaying notes and reminders.","SleekWhite"
"CampingGearBox","A storage container for outdoor equipment and supplies, often made of plastic or metal.","RuggedBrown"
"YogaMat","A flexible, foam surface used for practicing yoga or other floor exercises.","SoftGreen"
"FoldingChair","A portable chair that can be easily set up or taken down, often made of metal or aluminum.","SilverGrey"
"CoffeeTableBook","A large book or decorative object placed on a coffee table to add visual interest.","LeatherBound"
"WallShelfDivided","A shelf with separate compartments for organizing and displaying items.","WarmWood"
"PottedPlantStand","A freestanding structure used to display potted plants, often made of metal or ceramic.","EarthTone"
"Rug","A floor covering made of woven fibers, often designed to add warmth and texture to a room.","SoftBrown"
I hope this list meets your requirements!
>>> Create a list of entities typically found inside a Canadian house.
Include all major furniture and appliances, plus 30 additional less common entities.
Use the singular form for each Entity name, for example "Table" rather than "Tables".
Use camel case for the Entity name, for example "DishWasher" rather than "Dish Washer".
Do not include an abbreviation as part of the entity name.
Present the list in csv format.
Include a name, description, and color for each entity, for example:
"Chair","An object that one person can sit on.","LightSeaGreen"
Include a header line: "Entity","Description","Color"
Use only the following color names:
AliceBlue,AntiqueWhite,Aqua,Aquamarine,Azure,Beige,Bisque,Black,BlanchedAlmond,Blue,BlueViolet,Brown,BurlyWood,
CadetBlue,Chartreuse,Chocolate,Coral,CornflowerBlue,Cornsilk,Crimson,Cyan,
DarkBlue,DarkCyan,DarkGoldenRod,DarkGray,DarkGreen,DarkKhaki,DarkMagenta,DarkOliveGreen,DarkOrange,DarkOrchid,DarkRed,DarkSalmon,
DarkSeaGreen,DarkSlateBlue,DarkSlateGray,DarkTurquoise,DarkViolet,DeepPink,DeepSkyBlue,DimGray,DodgerBlue,
FireBrick,FloralWhite,ForestGreen,Fuchsia,Gainsboro,GhostWhite,Gold,GoldenRod,Gray,Green,GreenYellow,
HoneyDew,HotPink,IndianRed,Indigo,Ivory,Khaki,
Lavender,LavenderBlush,LawnGreen,LemonChiffon,LightBlue,LightCoral,LightCyan,LightGoldenRodYellow,LightGray,LightGreen,LightPink,
LightSalmon,LightSeaGreen,LightSkyBlue,LightSlateGray,LightSteelBlue,LightYellow,Lime,LimeGreen,Linen,
Magenta,Maroon,MediumAquaMarine,MediumBlue,MediumOrchid,MediumPurple,MediumSeaGreen,MediumSlateBlue,MediumSpringGreen,
MediumTurquoise,MediumVioletRed,MidnightBlue,MintCream,MistyRose,Moccasin,
NavajoWhite,Navy,OldLace,Olive,OliveDrab,Orange,OrangeRed,Orchid,PaleGoldenRod,PaleGreen,
PaleTurquoise,PaleVioletRed,PapayaWhip,PeachPuff,Peru,Pink,Plum,PowderBlue,Purple,
RebeccaPurple,Red,RosyBrown,RoyalBlue,
SaddleBrown,Salmon,SandyBrown,SeaGreen,SeaShell,Sienna,Silver,SkyBlue,SlateBlue,SlateGray,Snow,SpringGreen,SteelBlue,
Tan,Teal,Thistle,Tomato,Turquoise,Violet,Wheat,White,WhiteSmoke,Yellow,YellowGreen
Here is the list of entities typically found inside a Canadian house in CSV format:
"Entity","Description","Color"
Bed,"A piece of furniture for sleeping on.","LightSeaGreen"
BookShelf,"A structure to hold books on.","Brown"
CoffeeTable,"A low table for placing cups and snacks on.","Walnut"
Couch,"A piece of furniture for sitting or lying down on.","SaddleBrown"
DishWasher,"An appliance for cleaning dishes.","White"
Door,"A barrier that opens and closes to control access to a room.","Mocha"
Lamp,"An electric light fixture that provides lighting in the room.","Cream"
Pillow,"A cushion used to support one's head or neck while sleeping.","PaleBlue"
Shelf,"A flat surface for placing objects on.","Walnut"
Additional entities:
"Entity","Description","Color"
AcousticPanel,"A sound-absorbing panel for improving audio quality.","LightGray"
AirFreshener,"An object that releases a pleasant scent into the air.","FloralWhite"
AlarmClock,"A device that wakes you up at a specific time.","SlateBlue"
BambooBlinds,"Vertical slats made of bamboo that control light entering the room.","Mocha"
Basket,"A woven or synthetic container for storing small items.","HoneyDew"
BirdFeeder,"A structure for feeding birds outside the house.","SeaGreen"
Calendar,"A printed or digital schedule for planning daily activities.","PaleYellow"
CandleHolder,"An object that holds candles for decorative purposes.","Gold"
CoatRack,"A stand for hanging coats, hats, and bags.","Navy"
CompostBin,"A container for collecting and processing food waste.","EarthBrown"
DeskLamp,"A light fixture designed for use on a desk or table.","LightSteelBlue"
FilingCabinet,"A storage unit for organizing papers and documents.","Beige"
FlowerVase,"A container for holding flowers or plants.","PeachPuff"
GarmentRack,"A stand for hanging clothes to dry or store them.","Taupe"
Greenhouse,"A structure that simulates a controlled environment for growing plants.","EmeraldGreen"
HangingPlanter,"A decorative planter that hangs from the ceiling or wall.","Periwinkle"
Humidifier,"An appliance that adds moisture to the air to improve humidity levels.","Lavender"
Keurig,"A coffee machine that uses single-serve cups.","CrimsonRed"
LaundryBasket,"A container for carrying dirty laundry to be washed.","DarkGray"
MagneticBoard,"A surface coated with a ferromagnetic material for displaying notes and reminders.","SteelBlue"
MassageChair,"An electric chair designed to provide massage therapy and relaxation.","Cream"
Nightstand,"A small table or shelf placed beside a bed for storing personal items.","Walnut"
Piano,"A musical instrument played by pressing keys on the keyboard.","EbonyBlack"
Plants,"Living organisms grown in pots or planters for aesthetic purposes.","EmeraldGreen"
Please note that this list is not exhaustive, and entities may vary depending on individual preferences and cultural backgrounds.
>>> Reformat the csv list as XML, for example:
<Entities>
<CoatRack>
<Anno>A stand for hanging coats, hats, and bags.</Anno>
<Color>Navy</Color>
</CoatRack>
</Entities>
>>> Provide the complete XML including all items.
Here is the complete XML:
<?xml version="1.0" encoding="UTF-8"?>
<Entities>
<Bed>
<Anno>A piece of furniture for sleeping on.</Anno>
<Color>LightSeaGreen</Color>
</Bed>
<BookShelf>
<Anno>A structure to hold books on.</Anno>
<Color>Brown</Color>
</BookShelf>
<CoffeeTable>
<Anno>A low table for placing cups and snacks on.</Anno>
<Color>Walnut</Color>
</CoffeeTable>
<Couch>
<Anno>A piece of furniture for sitting or lying down on.</Anno>
<Color>SaddleBrown</Color>
</Couch>
<DishWasher>
<Anno>An appliance for cleaning dishes.</Anno>
<Color>White</Color>
</DishWasher>
<Door>
<Anno>A barrier that opens and closes to control access to a room.</Anno>
<Color>Mocha</Color>
</Door>
<Lamp>
<Anno>An electric light fixture that provides lighting in the room.</Anno>
<Color>Cream</Color>
</Lamp>
<Pillow>
<Anno>A cushion used to support one's head or neck while sleeping.</Anno>
<Color>PaleBlue</Color>
</Pillow>
<Shelf>
<Anno>A flat surface for placing objects on.</Anno>
<Color>Walnut</Color>
</Shelf>
<!-- Additional items -->
<AcousticPanel>
<Anno>A sound-absorbing panel for improving audio quality.</Anno>
<Color>LightGray</Color>
</AcousticPanel>
<AirFreshener>
<Anno>An object that releases a pleasant scent into the air.</Anno>
<Color>FloralWhite</Color>
</AirFreshener>
<AlarmClock>
<Anno>A device that wakes you up at a specific time.</Anno>
<Color>SlateBlue</Color>
</AlarmClock>
<BambooBlinds>
<Anno>Vertical slats made of bamboo that control light entering the room.</Anno>
<Color>Mocha</Color>
</BambooBlinds>
<Basket>
<Anno>A woven or synthetic container for storing small items.</Anno>
<Color>HoneyDew</Color>
</Basket>
<BirdFeeder>
<Anno>A structure for feeding birds outside the house.</Anno>
<Color>SeaGreen</Color>
</BirdFeeder>
<Calendar>
<Anno>A printed or digital schedule for planning daily activities.</Anno>
<Color>PaleYellow</Color>
</Calendar>
<CandleHolder>
<Anno>An object that holds candles for decorative purposes.</Anno>
<Color>Gold</Color>
</CandleHolder>
<CoatRack>
<Anno>A stand for hanging coats, hats, and bags.</Anno>
<Color>Navy</Color>
</CoatRack>
<CompostBin>
<Anno>A container for collecting and processing food waste.</Anno>
<Color>EarthBrown</Color>
</CompostBin>
<DeskLamp>
<Anno>A light fixture designed for use on a desk or table.</Anno>
<Color>LightSteelBlue</Color>
</DeskLamp>
<FilingCabinet>
<Anno>A storage unit for organizing papers and documents.</Anno>
<Color>Beige</Color>
</FilingCabinet>
<FlowerVase>
<Anno>A container for holding flowers or plants.</Anno>
<Color>PeachPuff</Color>
</FlowerVase>
<GarmentRack>
<Anno>A stand for hanging clothes to dry or store them.</Anno>
<Color>Taupe</Color>
</GarmentRack>
<Greenhouse>
<Anno>A structure that simulates a controlled environment for growing plants.</Anno>
<Color>EmeraldGreen</Color>
</Greenhouse>
<HangingPlanter>
<Anno>A decorative planter that hangs from the ceiling or wall.</Anno>
<Color>Periwinkle</Color> <!-- Periwinkle flowers are purplish-blue; Ollama suggests #6c5ce7 -->
</HangingPlanter>
<Humidifier>
<Anno>An appliance that adds moisture to the air to improve humidity levels.</Anno>
<Color>Lavender</Color>
</Humidifier>
<Keurig>
<Anno>A coffee machine that uses single-serve cups.</Anno>
<Color>CrimsonRed</Color>
</Keurig>
<LaundryBasket>
<Anno>A container for carrying dirty laundry to be washed.</Anno>
<Color>DarkGray</Color>
</LaundryBasket>
<MagneticBoard>
<Anno>A surface coated with a ferromagnetic material for displaying notes and reminders.</Anno>
<Color>SteelBlue</Color>
</MagneticBoard>
<MassageChair>
<Anno>An electric chair designed to provide massage therapy and relaxation.</Anno>
<Color>Cream</Color>
</MassageChair>
<Nightstand>
<Anno>A small table or shelf placed beside a bed for storing personal items.</Anno>
<Color>Walnut</Color>
</Nightstand>
<Piano>
<Anno>A musical instrument played by pressing keys on the keyboard.</Anno>
<Color>EbonyBlack</Color>
</Piano>
<Plants>
<Anno>Living organisms grown in pots or planters for aesthetic purposes.</Anno>
<Color>EmeraldGreen</Color>
</Plants>
</Entities>
Let me know if you need any further changes!
>>> Create a separate XML structure that includes just the name of each entity, for example: <Entity><Bed/><BookShelf/></Entity>
OK
>>> Some of the color names you used are not official HTML color names.
I apologize for the mistake. You are correct that some of the color names I used are not official HTML color names.
In XML, it's best to use standard HTML color names (such as "red", "blue", "green", etc.) or hexadecimal color codes (like "#FF0000" for red).
If you would like, I can reformat the XML to use only standard HTML color names or hexadecimal color codes. Let me know!
]]></markdown>
<params>
<param name="TooltipUseAnno" value="true"/>
</params>
<_-.XholonClass>
<!-- domain objects -->
<!--<PhysicalSystem/>
<Block/>
<Brick/>-->
<!-- quantities -->
<!--<Height superClass="Quantity"/>-->
<House/>
<HouseEntity>
<Bed/>
<BookShelf/>
<CoffeeTable/>
<Couch/>
<DishWasher/>
<Door/>
<Lamp/>
<Pillow/>
<Shelf/>
<AcousticPanel/>
<AirFreshener/>
<AlarmClock/>
<BambooBlinds/>
<Basket/>
<BirdFeeder/>
<Calendar/>
<CandleHolder/>
<CoatRack/>
<CompostBin/>
<DeskLamp/>
<FilingCabinet/>
<FlowerVase/>
<GarmentRack/>
<Greenhouse/>
<HangingPlanter/>
<Humidifier/>
<Keurig/>
<LaundryBasket/>
<MagneticBoard/>
<MassageChair/>
<Nightstand/>
<Piano/>
<Plants/>
<!-- 10 more -->
<Refrigerator/>
<WashingMachine/>
<CoffeeMaker/>
<Dishwasher/>
<Blender/>
<Oven/>
<Juicer/>
<VacuumCleaner/>
<ElectricShaver/>
<WaterFilter/>
</HouseEntity>
</_-.XholonClass>
<xholonClassDetails>
<!--<Block>
<port name="height" connector="Height"/>
</Block>-->
<Bed>
<Anno>A piece of furniture for sleeping on.</Anno>
<Color>LightSeaGreen</Color>
</Bed>
<BookShelf>
<Anno>A structure to hold books on.</Anno>
<Color>Brown</Color>
</BookShelf>
<CoffeeTable>
<Anno>A low table for placing cups and snacks on.</Anno>
<Color>Walnut</Color>
</CoffeeTable>
<Couch>
<Anno>A piece of furniture for sitting or lying down on.</Anno>
<Color>SaddleBrown</Color>
</Couch>
<DishWasher>
<Anno>An appliance for cleaning dishes.</Anno>
<Color>White</Color>
</DishWasher>
<Door>
<Anno>A barrier that opens and closes to control access to a room.</Anno>
<Color>Mocha</Color>
</Door>
<Lamp>
<Anno>An electric light fixture that provides lighting in the room.</Anno>
<Color>Cream</Color>
</Lamp>
<Pillow>
<Anno>A cushion used to support one's head or neck while sleeping.</Anno>
<Color>PaleBlue</Color>
</Pillow>
<Shelf>
<Anno>A flat surface for placing objects on.</Anno>
<Color>Walnut</Color>
</Shelf>
<!-- Additional items -->
<AcousticPanel>
<Anno>A sound-absorbing panel for improving audio quality.</Anno>
<Color>LightGray</Color>
</AcousticPanel>
<AirFreshener>
<Anno>An object that releases a pleasant scent into the air.</Anno>
<Color>FloralWhite</Color>
</AirFreshener>
<AlarmClock>
<Anno>A device that wakes you up at a specific time.</Anno>
<Color>SlateBlue</Color>
</AlarmClock>
<BambooBlinds>
<Anno>Vertical slats made of bamboo that control light entering the room.</Anno>
<Color>Mocha</Color>
</BambooBlinds>
<Basket>
<Anno>A woven or synthetic container for storing small items.</Anno>
<Color>HoneyDew</Color>
</Basket>
<BirdFeeder>
<Anno>A structure for feeding birds outside the house.</Anno>
<Color>SeaGreen</Color>
</BirdFeeder>
<Calendar>
<Anno>A printed or digital schedule for planning daily activities.</Anno>
<Color>PaleYellow</Color>
</Calendar>
<CandleHolder>
<Anno>An object that holds candles for decorative purposes.</Anno>
<Color>Gold</Color>
</CandleHolder>
<CoatRack>
<Anno>A stand for hanging coats, hats, and bags.</Anno>
<Color>Navy</Color>
</CoatRack>
<CompostBin>
<Anno>A container for collecting and processing food waste.</Anno>
<Color>EarthBrown</Color>
</CompostBin>
<DeskLamp>
<Anno>A light fixture designed for use on a desk or table.</Anno>
<Color>LightSteelBlue</Color>
</DeskLamp>
<FilingCabinet>
<Anno>A storage unit for organizing papers and documents.</Anno>
<Color>Beige</Color>
</FilingCabinet>
<FlowerVase>
<Anno>A container for holding flowers or plants.</Anno>
<Color>PeachPuff</Color>
</FlowerVase>
<GarmentRack>
<Anno>A stand for hanging clothes to dry or store them.</Anno>
<Color>Taupe</Color>
</GarmentRack>
<Greenhouse>
<Anno>A structure that simulates a controlled environment for growing plants.</Anno>
<Color>EmeraldGreen</Color>
</Greenhouse>
<HangingPlanter>
<Anno>A decorative planter that hangs from the ceiling or wall.</Anno>
<!--<Color>Periwinkle</Color>-->
<Color>#6c5ce7</Color>
</HangingPlanter>
<Humidifier>
<Anno>An appliance that adds moisture to the air to improve humidity levels.</Anno>
<Color>Lavender</Color>
</Humidifier>
<Keurig>
<Anno>A coffee machine that uses single-serve cups.</Anno>
<Color>CrimsonRed</Color>
</Keurig>
<LaundryBasket>
<Anno>A container for carrying dirty laundry to be washed.</Anno>
<Color>DarkGray</Color>
</LaundryBasket>
<MagneticBoard>
<Anno>A surface coated with a ferromagnetic material for displaying notes and reminders.</Anno>
<Color>SteelBlue</Color>
</MagneticBoard>
<MassageChair>
<Anno>An electric chair designed to provide massage therapy and relaxation.</Anno>
<Color>Cream</Color>
</MassageChair>
<Nightstand>
<Anno>A small table or shelf placed beside a bed for storing personal items.</Anno>
<Color>Walnut</Color>
</Nightstand>
<Piano>
<Anno>A musical instrument played by pressing keys on the keyboard.</Anno>
<Color>EbonyBlack</Color>
</Piano>
<Plants>
<Anno>Living organisms grown in pots or planters for aesthetic purposes.</Anno>
<Color>EmeraldGreen</Color>
</Plants>
<!-- I asked for 10 more appliances -->
<Refrigerator>
<Anno>A stand-alone refrigerator for storing and cooling food.</Anno>
<Color>#D3D3D3</Color>
</Refrigerator>
<WashingMachine>
<Anno>A device that washes clothes in a cycle of water, detergent, and heat.</Anno>
<Color>#666666</Color>
</WashingMachine>
<CoffeeMaker>
<Anno>A machine that brews hot coffee or tea from ground beans or leaves.</Anno>
<Color>#C0C0C0</Color>
</CoffeeMaker>
<Dishwasher>
<Anno>A device that washes and dries dishes, pots, and pans in a cycle of water, detergent, and heat.</Anno>
<Color>#AAAAAA</Color>
</Dishwasher>
<Blender>
<Anno>A machine that grinds grain or coffee beans into fine powder for consumption.</Anno>
<Color>#B3B3B3</Color>
</Blender>
<Oven>
<Anno>A device that cooks food in a controlled temperature and humidity environment.</Anno>
<Color>#444444</Color>
</Oven>
<Juicer>
<Anno>A machine that extracts juice from fruits and vegetables for consumption.</Anno>
<Color>#666699</Color>
</Juicer>
<VacuumCleaner>
<Anno>A device that cleans and polishes hard surfaces, such as floors and countertops.</Anno>
<Color>#999999</Color>
</VacuumCleaner>
<ElectricShaver>
<Anno>A machine that shaves hair from the body for personal grooming.</Anno>
<Color>#666600</Color>
</ElectricShaver>
<WaterFilter>
<Anno>A device that filters and purifies water for drinking and other household uses.</Anno>
<Color>#555555</Color>
</WaterFilter>
<House><Color>white</Color></House>
<Avatar><Color>red</Color></Avatar>
</xholonClassDetails>
<PhysicalSystem>
<!--<Block>
<Height>0.1 m</Height>
</Block>
<Brick multiplicity="2"/>-->
<House>
<Bed/>
<BookShelf/>
<CoffeeTable/>
<Couch/>
<DishWasher/>
<Door/>
<Lamp/>
<Pillow/>
<Shelf/>
<AcousticPanel/>
<AirFreshener/>
<AlarmClock/>
<BambooBlinds/>
<Basket/>
<BirdFeeder/>
<Calendar/>
<CandleHolder/>
<CoatRack/>
<CompostBin/>
<DeskLamp/>
<FilingCabinet/>
<FlowerVase/>
<GarmentRack/>
<Greenhouse/>
<HangingPlanter/>
<Humidifier/>
<Keurig/>
<LaundryBasket/>
<MagneticBoard/>
<MassageChair/>
<Nightstand/>
<Piano/>
<Plants/>
<!-- 10 more -->
<Refrigerator/>
<WashingMachine/>
<CoffeeMaker/>
<Dishwasher/>
<Blender/>
<Oven/>
<Juicer/>
<VacuumCleaner/>
<ElectricShaver/>
<WaterFilter/>
</House>
</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