Projet

Général

Profil

Actions

Wiki » Historique » Révision 14

« Précédent | Révision 14/18 (diff) | Suivant »
Anonyme, 16/04/2012 15:10


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).

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 :
  <dependency>
            <groupId>MASDebugToolKit</groupId>
            <artifactId>MASDebugToolKit</artifactId>
            <version>0.0.1-SNAPSHOT</version>
  </dependency>
  • Add something like this in your code :
ContextAgentRangeDebugPanel contextRangeDebug = new ContextAgentRangeDebugPanel();
contextRangeDebug.variableValueUpdate(varID, timeStamp, value);

contextRangeDebug.updateAgentRangeValue(contextRef, varID, min, max);

Agent State Panel

  • Auto-resize
  • Dynamically change the color set
  • Dynamically change the square size

Context Range Panel

Mutliple Time Trace

  • Select visible series at runtime.
  • Keeping track of the n-last value.
  • n can be different for each series.

Mis à jour par Anonyme il y a environ 14 ans · 18 révisions