blob: 2db046ed981238254b28e440b1db602654705f9d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<cheatsheet
title="Create an Escape Java Model">
<intro>
<description>
This cheat sheet walks you through creating a new Java-based Escape model.
</description>
</intro>
<item title="Create your Scape class" dialog="true" skip="false" href="/org.eclipse.jdt.doc.user/gettingStarted/qs-9.htm">
<description>
The next step is to create the actual model class. In the main toolbar again, click on the <b>New Java Class</b> button (or the link below). If not already specified, select your project's <b>src</b> directory as the source folder. Enter <b>CoordinationGame</b> for the class name, and select the checkbox to create the <b>main()</b> method, then click <b>Finish</b>.<br/>
<br/>
The Java editor will automatically open showing your new class.
</description>
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewClassCreationWizard)" required="false" translate="">
</command>
</item>
<item
title="Copy the coordination game code.">
<description>
To implement the model, we'll just copy the code from the Ascape manual.
</description>
<command
required="false"
serialization="org.eclipse.ui.help.displayHelp(href=/org.ascape.doc/Content/manual/Appendix.html?path%=3_1_6_0_0#1.1)"/>
</item>
<item title="Create your Agent class" dialog="true" skip="false" href="/org.eclipse.jdt.doc.user/gettingStarted/qs-9.htm">
<description>
Next, do the same for the CoordinationGamePlayer class.
</description>
<command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewClassCreationWizard)" required="false" translate="">
</command>
</item>
</cheatsheet>