Projet

Général

Profil

Make Agents Yourself » Historique » Version 18

Anonyme, 03/01/2012 11:02

1 1 Anonyme
h1. SpeADL MAY
2
3 2 Anonyme
This page is about the upcoming version of MAY based on the SpeADL language.
4 1 Anonyme
5 2 Anonyme
h2. Installation
6 1 Anonyme
7 4 Anonyme
To install it, use the following update site with Eclipse Helios:
8 1 Anonyme
9 12 Anonyme
 http://www.irit.fr/~Victor.Noel/may/update-may-2/
10 1 Anonyme
11 18 Anonyme
Development version is at (careful, could be buggy and breaking everything), this is an implementation of the paper "Une approche architecturale à base de composants pour l'implémentation des SMA":
12 13 Anonyme
13 17 Anonyme
 http://www.irit.fr/~Victor.Noel/may/update-may-2-snapshots/
14 13 Anonyme
15 2 Anonyme
h2. Setting up a project
16 1 Anonyme
17
After creating a Java project, don't forget to add the SpeADL Nature to the project (right-click, configure).
18
Then create a new file with the speadl extension.
19
20 2 Anonyme
h2. Maven integration
21
22 5 Anonyme
Common components are available as Maven artefact.
23
24
For maven support in Eclipse, use the following plugin: http://eclipse.org/m2e/
25
26
In particular, the following update site can be used:
27
28
  http://download.eclipse.org/technology/m2e/releases
29
30 2 Anonyme
Maven artefacts with common components are available in the following repository:
31
32 6 Anonyme
 http://www.irit.fr/~Victor.Noel/maven-repos/
33 2 Anonyme
34 1 Anonyme
A good starting pom.xml for a new project is the following:
35
36
<pre>
37
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
38
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
39
	<modelVersion>4.0.0</modelVersion>
40
	<groupId>XXX</groupId>
41
	<artifactId>XXX</artifactId>
42
	<version>0.0.1-SNAPSHOT</version>
43
	<dependencies>
44
		<dependency>
45
			<groupId>fr.irit.smac.may.lib</groupId>
46
			<artifactId>common-components</artifactId>
47 12 Anonyme
			<version>0.0.3</version>
48 1 Anonyme
			<type>jar</type>
49
			<scope>compile</scope>
50
		</dependency>
51
	</dependencies>
52
	<repositories>
53
		<repository>
54
			<id>fr.irit.smac</id>
55 6 Anonyme
			<url>http://www.irit.fr/~Victor.Noel/maven-repos/</url>
56 1 Anonyme
		</repository>
57
	</repositories>
58
	<build>
59
		<plugins>
60
			<plugin>
61
				<groupId>org.codehaus.mojo</groupId>
62
				<artifactId>build-helper-maven-plugin</artifactId>
63 8 Anonyme
				<version>1.7</version>
64 1 Anonyme
				<executions>
65
					<execution>
66
						<id>add-source</id>
67
						<phase>generate-sources</phase>
68
						<goals>
69
							<goal>add-source</goal>
70
						</goals>
71
						<configuration>
72
							<sources>
73
								<source>src-gen</source>
74
							</sources>
75
						</configuration>
76
					</execution>
77
				</executions>
78
			</plugin>
79 7 Anonyme
		</plugins>
80 1 Anonyme
	</build>
81
</project>
82
</pre>
83 2 Anonyme
84
h2. Sources
85
86
The source code can be downloaded using the Mercurial DVCS:
87
88 3 Anonyme
MAY:
89 2 Anonyme
90
 hg clone https://anon@wwwsecu.irit.fr/hg/SMAC/victor-noel-phd/may/may/
91 1 Anonyme
92 5 Anonyme
Libraries and examples:
93 3 Anonyme
94 1 Anonyme
 hg clone https://anon@wwwsecu.irit.fr/hg/SMAC/victor-noel-phd/may/lib/
95 5 Anonyme
96
For Mercurial integration in Eclipse, use the following plugin: http://javaforge.com/project/HGE
97 1 Anonyme
98
In particular, the following update site can be used:
99
100
 http://cbes.javaforge.com/update
101 10 Anonyme
102
h2. Work In Progress
103
104
To install it: [[SpeADL MAY Install]]
105
106 14 Anonyme
Install Maven Plugin: [[Maven Plugin Install for Eclipse]]
107 11 Anonyme
108 10 Anonyme
To set-up a new project using Maven: [[SpeADL MAY Project SetUp]]