MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 Re: HowTo » interface graphique » 2010-08-23 17:47:21

Merçi pour vous , c fait!! mais j'ai du modifier le fichier .cfg et aussi mettre un lien pour tools.jars

#2 Re: HowTo » interface graphique » 2010-08-20 13:11:10

voila le build.xml.
je sais pas ce que vous voulez dire , il aurais fallu creer un autre fil??

#3 Re: HowTo » interface graphique » 2010-08-20 13:09:14

EDIT THIS PART ACCORDING TO YOUR OWN PROJECT


  -->
- <project name="AgentPojectForVRPTW" default="jar" basedir=".">
- <!--  default is "jar" but can be changed to "compile" to only compile for instance
  -->
  <property file="../madkit.properties" />
- <!--  using madkit project's default properties.
  -->
- <!--
         Specify the plugin jar files and third party resources that are required for compiling (madkitkernel.jar at least) (must be located in the lib directory)
   

  -->
- <fileset id="project.class.path" dir="${jars.dir}">
  <include name="madkitkernel.jar" />
  <include name="madkitutils.jar" />
  <include name="messages.jar" />
- <!--  <include name="other1.jar"/>
  -->
- <!--  <include name="other2.jar"/>
  -->
  </fileset>
- <!--
         Specify the plugin basic informations:
         . source directory
         . version of the plugin
         . author
         . other plugins dependencies: the required jars separated by "," whithout space
         . description: a short description of what the plugin does
   

  -->
  <property name="src.dir" value="src" />
  <property name="version" value="1.0" />
  <property name="author" value="unknown" />
- <!--  the author's name
  -->
  <property name="depend" value="madkitkernel, madkitutils, messages" />
- <!--  value="madkitkernel, messages, other1, other2" for instance (you will need madkitkernel at least)
  -->
  <property name="requires" value="" />
- <!--  value="boo.jar", "images.jar", all the external jars that you would need
  -->
  <property name="description" value="A new plugin." />
  <property name="agents" value="all" />
- <!--
         Options:
         . Specify the directory where your images (jpg and gifs) are located inside the src directory (they will be added in the jar file)
         . Specify the name of the java packages to build api docs properly.
         . Give a title to the generated html pages.
   

  -->
  <property name="images.dir" value="images" />
- <!--  means that images are located in "${src}/images" or its subdirectories
  -->
  <property name="project.label" value="A simple project" />
  <property name="project.category" value="tools" />
- <!-- 

  -->
- <!--

     GENERIC PART (edit to achieve more functionalities or delete unused targets)


  -->
- <target name="jar" description="Jars the plugin into the jars.dir directory and create launch file if a cfg file available">
  <ant antfile="${generic.file}" dir="." target="jar" inheritrefs="true" />
  </target>
- <target name="docs">
  <ant antfile="${generic.file}" dir="." target="docs" inheritrefs="true" />
  </target>
- <target name="clean">
  <ant antfile="${generic.file}" dir="." target="clean" inheritrefs="true" />
  </target>
- <target name="real-clean">
  <ant antfile="${generic.file}" dir="." target="real-clean" inheritrefs="true" />
  </target>
- <target name="all">
  <ant antfile="${generic.file}" dir="." target="all" inheritrefs="true" />
  </target>
- <target name="src-dist">
  <ant antfile="${generic.file}" dir="." target="src-dist" inheritrefs="true" />
  </target>
- <target name="bin-dist">
  <ant antfile="${generic.file}" dir="." target="bin-dist" inheritrefs="true" />
  </target>
- <target name="doc-dist">
  <ant antfile="${generic.file}" dir="." target="doc-dist" inheritrefs="true" />
  </target>
- <target name="standalone-dist">
  <ant antfile="${generic.file}" dir="." target="standalone-dist" inheritrefs="true" />
  </target>
- <target name="plugin-dist">
  <ant antfile="${generic.file}" dir="." target="plugin-dist" inheritrefs="true" />
  </target>
- <target name="web-dist">
  <ant antfile="${generic.file}" dir="." target="web-dist" inheritrefs="true" />
  </target>
  </project>

#4 Re: HowTo » interface graphique » 2010-08-02 13:26:28

je veux creer un executable sous madkit est il possible de le faire et comment??

#5 Re: HowTo » interface graphique » 2009-07-30 13:37:37

bonjour,
jai un problemeavec la communication entre agent , jai un agent qui lis des donnes (une matrice) cet agent doit transmettre chaque ligne de la matrice a dautre agent .jai utilisé sendMessage() mais ca mache pas.
svp aidez moi ca fait long temps que je suis bloké dans cette communication et jarrive pas.
merci.

#6 Re: HowTo » interface graphique » 2009-07-05 14:07:16

bonjour a tous;
je voudrais vous demander si c'est possible de me dire comment un agent peut creer(lancer d'autre agents).
entre d'autre terme jai un agents qui lis des données , et je veux que cet agent distribue ces données sur d'autre agents qu'il va creer lui meme ;je ne sais pas si c'est possible ou pas ??

#7 Re: HowTo » interface graphique » 2009-06-17 19:26:37

moh34 wrote:

bonjour;
j'ai fais ca ;
ja'ai crée une intreface avec netbeans mais il me génère cette exeption
Agent launch exception:java.lang.IllegalArgumentException: adding a window to a container
adding a window to a container
java.lang.IllegalArgumentException: adding a window to a container
    at java.awt.Container.addImpl(Container.java:1022)
    at java.awt.Container.add(Container.java:352)
    at madkit.desktop2.InternalAgentFrame.<init>(Unknown Source)
    at madkit.desktop2.DesktopMDI.addComponent(Unknown Source)
    at madkit.desktop2.DesktopAgentGUI.addAgent(Unknown Source)
    at madkit.desktop2.DesktopAgent.addAgent(Unknown Source)
    at madkit.desktop2.DesktopBooter.setupGUI(Unknown Source)
    at madkit.kernel.Kernel.launchAgent(Unknown Source)
    at madkit.kernel.Kernel.launchAgent(Unknown Source)
    at madkit.kernel.AbstractAgent.launchAgent(Unknown Source)
    at madkit.designer.JavaAgentNode.execute(Unknown Source)
    at madkit.TreeTools.GenericTree.LeftDoubleClick(Unknown Source)
    at madkit.TreeTools.GenericTree.mousePressed(Unknown Source)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
    at java.awt.Component.processMouseEvent(Component.java:6035)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
    at java.awt.Component.processEvent(Component.java:5803)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4410)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2429)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
aidez moi SVP

bonjour
jai eu le probleme et je narrive pas a comprendre ces erreurs , si vous avez resolu ce pb svl aidez moi

#8 HowTo » interface graphique » 2009-04-26 21:03:52

lina80
Replies: 12

bonsoir a tous;
j'essai d'apprendre madkit , et j'essai de faire une interface graphique mais j'arrive pas a comprendre le fonctionnement.
est il possible de creer une interface graphique sous netbeans et la ramener sous madkit?
merci .

Board footer