|
ExamplesThe examples are tested with CaesarJ compiler 0.8.5.Simple examplesHere you can find source code of some examples. These examples are explained in detail in the Programming Guide.Pricing exampleDemonstrates variation of pricing strategies and bindings.[download sources] How to run examples?
Large ExamplesHierarchy display exampleA large example, which demonstrates development and adaptation of a generic visualization component.[download sources] L2 InterpreterL2 is a mini object-oriented language. The example demonstrates a modular and extensible implementation of the interpreter for the language in CaesarJ. You will find several test programs of L2 and its sample extension in/src/l2examples . To test the interpreter you can run the unit tests in /src/test .
[download sources]
Dungeon GameDungeon is a middle size case study that demonstrates feature-oriented programming with CaesarJ. Dungeon is a real-time game written in CaesarJ. The goal of the game is to find the princess in a labirinth of underground rooms. Some of the rooms contain monsters or entrapments. The player can collect various items: weapons, armor, potions and money. Weapons and armor can be configured in the inventory window. To start the game run the "de.tud.st.dungeon.Run" class. The class shows a dialog which allows you to customize the game. Switch on the desired game features and press "START!!!". Game controls:
"-Xss1M" argument in "Run...->Arguments->VM Arguments".
To run the example you also have to install [https://java3d.dev.java.net/ Java 3D]]
[download sources]
Remoting ExamplesRemote PricingPricing example withStockBroker residing on remote process. The example demonstrates how we can deploy aspects on the threads of remote process. [download sources] To run the example:
Remote HierarchiesHierarchies example with client-server architecture. Data model resides on the server process, while the UI runs on the client side[download sources] To run the example:
|