Projet

Général

Profil

Make Agents Yourself » Historique » Version 20

Anonyme, 05/01/2012 08:24

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