Xholon applications can be deployed from a server using Java Web Start (JNLP). This page includes a few examples. Just press the Launch buttons. These applications are all self-certified, so you will see a security warning popup.
This is a very simple Hello World example. All it does is print Hello World! five times. To see this result, you will need to have the Java Web Start (JNLP) console enabled.
MeTTTa is a simple game of tic-tac-toe.
Chameleon (with Groovy support)
Chameleon (with JRuby support)
Chameleon (with Jython support)
Chameleon is a Xholon application that does nothing but run forever. To make it do something, you will need to paste in one or more Xholon nodes, written in a Java scripting language such as beanshell or groovy.
As an example, follow these steps:
<SaySiblings implName="lang:beanshell:inline:"><![CDATA[ import org.primordion.xholon.base.Xholon; public class SaySiblings extends Xholon { private String siblingText = "I have this number of siblings: "; public void postConfigure() { println(this.toString()); } public String toString() { return siblingText + getNumSiblings(); } public String getSiblingText() { return siblingText; } public void setSiblingText(String siblingText) { this.siblingText = siblingText; } } new SaySiblings(); ]]></SaySiblings>
I have this number of siblings: 0
WolfSheepGrass is an Agent Based Model where wolves, sheep and grass interact on a grid.
The stupid models are standard Agent Based Models that have been implemented by various tools, including Xholon.
This is a miscellaneous set of Xholon sample models.
In the Bestiary sample Xholon app, beasts exist in a grid and perform various behaviors.
You can paste houses into the Grid node, or directly into any grid cell. Some examples that can be copied and pasted:
<BestiaryPattern x="10" y="10"> _WWWWW _W...W PDE..W _W...W _WWWWW </BestiaryPattern>
<BestiaryPattern> _____P _WWWWDWWWWWWW _W...E......W PDE.........W _W..........W _W..........W _W.........EDP _W..........W PDE.........W _W..........W _W.......E..W _WWWWWWWWDWWW _________P </BestiaryPattern>
<BestiaryPattern x="25" y="45"> _WWWWW _W...W PDE..W _W...W _W..WWWW _W.....WW _W......WWWWWWWW _W........W....W PDE.......W....W _W............EDP _W........W....W _WWWWW..WWWWWWWW ___W......W ___W......W ___WWWWWWWW </BestiaryPattern>
The following two houses are specialized cat traps. Once a cat enters the outer door, you can keep closing doors until you've herded it into the inner room. Then you can reopen all but the inner door, and wait to lure in another cat.
<BestiaryPattern x="10" y="10"> _WWWWW______WWWWWW _W...WWWWWWWW....W PDE..DDDDDDDD....W _W...WWWWWWWW....W _WWWWW______WWWWWW </BestiaryPattern>
<BestiaryPattern x="10" y="10"> ____________WWWWWW _WWWWWWWWWWWW....W PDDDDDDDDDDDD....W _WWWWWWWWWWWW....W ____________WWWWWW </BestiaryPattern>
The following .png images are how the above houses and cat traps look once they've been pasted into the grid. You can actually paste these .png images directly into the grid. Just follow these steps:
You can paste in new cats with cat behaviors.
<Cat> <MovingCatbehavior/> <GrowingCatbehavior/> <FreedomOfMovementCatbehavior/> </Cat>
You can paste in multiple cats at a time, as a forest.
<_-.beasts> <Cat multiplicity="10"> <MovingCatbehavior/> <GrowingCatbehavior/> <FreedomOfMovementCatbehavior/> </Cat> </_-.beasts>
Other things you can do with the Bestiary app include:
This is a miscellaneous set of Xholon Dynamical Systems models.
These are cell biology and related models.
Several models having to do with climate change. They are all in a somewhat preliminary state.
This combines two models, an Earth energy budget model, and a carbon cycle model. Both models are under development, and are in a preliminary state.
This is an extension of a NetLogo Gas Lab model, embedded inside a Xholon model.
This is a test of the Solar System reusable module.
A simple petri net model from the Azimuth Project.