This paper shows generation of JavaScript code from code written in agent-oriented domain-specific language ALAS. ALAS is an agent-oriented domain-specific language for writing software agents that are executed within XJAF middleware. Since the agents can be executed on various platforms, they must be converted into a language of the target platform. We also try to utilize existing tools and technologies to make the whole conversion process as simple as possible, as well as faster and more efficient. We use the Xtext framework that is compatible with Java to implement ALAS infrastructure - editor and code generator. Since Xtext supports Java, generation of Java code from ALAS code is straightforward. To generate a JavaScript code that will be executed within the target JavaScript XJAF implementation, Google Web Toolkit (GWT) is used.

1.
M.
Vidaković
,
M.
Ivanović
,
D.
Mitrović
,
Z.
Budimac
, - “
Extensible Java EE-based agent framework - past, present, future
”, In:
Ganzha
,
M.
,
Jain
,
L.C.
(eds.)
Multiagent Systems and Applications, Intelligent Systems Reference Library
, vol.
45
, pp.
55
88
.
Springer
Berlin Heidelberg
,
2013
.
2.
D.
Mitrović
,
M.
Ivanović
,
M.
Vidaković
, - „
Introducing ALAS: a novel agent-oriented programming language
“, In
Symposium on computer languages, implementations and tools, SCLIT 2011
,
Greece
, pp.
19
25
,
2011
.
3.
D.
Mitrović
,
M.
Ivanović
,
M.
Vidaković
,
D.
Sredojević
,
D.
Okanović
, “
Integracija agentskog jezika ALAS u Java agentsko okruženje XJAF
“,
XX naučna i biznis konferencija
,
9-13. Mart 2014
. pp.
457
461
,
2014
.
4.
A.
Ricci
and
A.
Santi
, “
Concurrent object-oriented programming with agent-oriented abstractions: The ALOO approach
,” in
AGERE. ACM
, pp.
127
138
,
2013
.
5.
M.
Dastani
, “
2APL: A practical agent programming language
,”
Autonomous Agents and Multi-Agent Systems
, vol.
16
, no.
3
, pp.
214
248
,
2008
.
6.
M.
Dastani
,
M. B.
Riemsdijk
,
F.
Dignum
, and
J.-J. C.
Meyer
, “
A programming language for cognitive agents goal directed 3APL
,” in
Programming Multi-Agent Systems, ser. LNCS
, vol.
3067
, pp.
111
130
,
2004
.
7.
F. S.
de Boer
,
K. V.
Hindriks
,
W.
van der Hoek
, and
J.-J. C.
Meyer
, “
Agent programming with declarative goals
,” in
Intelligent Agents VII, ser. LNCS
, vol.
1986
, pp.
117
131
,
2002
.
8.
R. H.
Bordini
,
J. F.
Hübner
, and
M.
Wooldridge
, “
Programming Multi-Agent Systems in AgentSpeak Using Jason
”,
John Wiley & Sons
,
2007
.
9.
S.
Rodriguez
,
N.
Gaud
, and
S.
Galland
, “
SARL: a general-purpose agent-oriented programming language
”, In
The 2014 IEEE/WIC/ACM International Conference on Intelligent Agent Technology
.
Warsaw, Poland
:
IEEE Computer Society Press
,
2014
.
10.
M.
Minotti
,
Santi
,
A.
Ricci
, “
Developing web client applications with JaCa-Web
”, In:
A.
Omicini
,
M.
Viroli
(Eds.),
Proceedings of the 11th WOA 2010 Workshop, Dagli Oggetti Agli Agenti. Vol. 621 of CEUR Workshop Proceedings
.
Rimini, Italy
,
September 5–7
,
2010
.
11.
D.
Mitrovic
,
M.
Ivanovic
,
Z.
Budimac
,
M.
Vidakovic
, - “
Radigost: Interoperable web-based multi-agent platform
”,
The Journal of Systems and Software
90
, pp.
167
178
,
2014
.
12.
D.
Mitrovic
,
M.
Ivanovic
,
Z.
Budimac
,
M.
Vidakovic
, - “
Supporting heterogeneous agent mobility with ALAS
”,
Computer Science and Information Systems
9
(
3
), pp.
1203
1229
,
2012
.
13.
D.
Sredojevic
,
D.
Okanovic
,
M.
Vidakovic
,
D.
Mitrovic
and
M.
Ivanovic
, “
Domain specific agent-oriented programming language based on the Xtext framework
”,
5. International Conference on Informational Science and Technology (ICIST2015
),
Kopaonik
,
2015
.
14.
D.
Sredojevic
,
M.
Vidakovic
and
D.
Okanovic
, „
Integration of agent domain-specific language ALAS into extensible Java-based framework XJAF
“,
34th International Conference on Organizational Science Development internationalization and cooperation
,
Portorož
, pp.
1037
1043
,
25th–27th
March
2015
.
16.
Google Web Toolkit
, http://www.gwtproject.org, on April 19,
2015
.
17.
Ajax
, http://www.w3schools.com/ajax, on April 19,
2015
.
This content is only available via PDF.
You do not currently have access to this content.