Wiki » Historique » Révision 7
Révision 6 (Anonyme, 16/04/2012 14:38) → Révision 7/18 (Anonyme, 16/04/2012 14:42)
h1. Wiki Ce dépôt contient un ensemble de JPanel permettant facilement d'observer et de débugger des agents. Il tire des dépendances vers common-components, jcommon et jfreechart uniquement (cf pom.xml). h1. Screen shot !idcounterCONFIG1.png ! h1. How To ? #1 Checkout the repo in your workspace. Do it in console with @hg clone /usr/local/Mercurial/SMAC/gatto/MASDebugToolKit@ #2 Add the following in your pom.xml : <pre><code class="xml"> <dependency> @<dependency> <groupId>MASDebugToolKit</groupId> <artifactId>MASDebugToolKit</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </code></pre> </dependency>@ #3 Add something like this in your code : <pre><code class="java"> ContextAgentRangeDebugPanel contextRangeDebug = new ContextAgentRangeDebugPanel(); contextRangeDebug.variableValueUpdate(varID, timeStamp, value); contextRangeDebug.updateAgentRangeValue(contextRef, varID, min, max); </code></pre>