Projet

Général

Profil

Make Agents Yourself » Historique » Version 24

Anonyme, 20/01/2012 08:41

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