Projet

Général

Profil

Make Agents Yourself » Historique » Version 6

Anonyme, 28/09/2011 17:20

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