Wiki » Historique » Révision 17
Révision 16 (Anonyme, 16/04/2012 15:11) → Révision 17/18 (Anonyme, 16/04/2012 15:12)
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. How To ? * Checkout the repo in your workspace. Do it in console with @hg clone /usr/local/Mercurial/SMAC/gatto/MASDebugToolKit@ * Add the following in your pom.xml : <pre><code class="xml"> <dependency> <groupId>MASDebugToolKit</groupId> <artifactId>MASDebugToolKit</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </code></pre> * 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> h1. Agent State Panel p>. !smaIface_AgentState.png ! p>. * Auto-resize * Dynamically change the color set * Dynamically change the square size h1. Context Range Panel !smaIface_XYrangeDebug.png! h1. Mutliple Time Trace !smaIface_VariableState.png! * Select visible series at runtime. * Keeping track of the n-last value. * n can be different for each series.