Top Banner
JAS 1.0: New features Michele Sonnessa ([email protected]) Department of Computer Science University of Torino, Italy SwarmFest 2004, May 9-11 Ann Arbor http://jaslibrary.sourceforge.net
15

JAS 1.0: New features

Dec 31, 2015

Download

Documents

camilla-farren

http ://jaslibrary.sourceforge.net. JAS 1.0: New features. Michele Sonnessa ([email protected]) Department of Computer Science University of Torino, Italy SwarmFest 2004, May 9-11 Ann Arbor. Main new features. A new GUI: the simulation environment A brand new statistical package - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: JAS 1.0:  New features

JAS 1.0: New features

Michele Sonnessa([email protected])Department of Computer ScienceUniversity of Torino, Italy

SwarmFest 2004, May 9-11 Ann Arbor

http://jaslibrary.sourceforge.net

Page 2: JAS 1.0:  New features

Main new features

A new GUI: the simulation environment A brand new statistical package HSQLDB database support Graph package with Social Network

Analysis functions

Page 3: JAS 1.0:  New features

The simulation environment

Project tree panel

Output console

Simulation controls

User’s model area

Page 4: JAS 1.0:  New features

Statistics: the encapsulation

I*Source I*Source I*Source I*Source

CrossSection.*

I*ArraySource

I*Source

Series.*

I*ArraySource

*TraceFunction

I*Source

*ArrayFunction

Array

Value

jas.statistics.*

Page 5: JAS 1.0:  New features

Statistics: the moving average example

myAgent 1 myAgent 2 myAgent n

IntInvoker IntInvoker IntInvoker

CrossSection

MeanArrayFunction

Series MovingAverageFunction

Single value

Array of values

jas.statistics.*

Page 6: JAS 1.0:  New features

Statistics: a code example

CrossSection.Integer crossSection = new CrossSection.Integer(agentList, “income”, false);

Series.Double series = new Series.Double(new MeanFunction(crossSection));

MovingAverageArrayFunction ma = new MovingAverageArrayFunction(series, 3);

eventList.scheduleSimple(0, 1, ma, Sim.EVENT_UPDATE);

jas.statistics.*

Page 7: JAS 1.0:  New features

Hypersonic SQL Database

Automatically collects simulation data Supports multi-run indexing Automatically creates primary keys

Data can be later read with Standard jdbc consumers OpenOffice The JAS database manager (taken from the

HSQL tools)

jas.statistics.db.*

Page 8: JAS 1.0:  New features

Database: an example

private void buildDatabase(String databaseName){

database = new Database(path + "dbout/", databaseName, true);

CollectionTable agentIncomeTable = database.addCollectionTable("AgentIncome",

Table.PK_SIMULATION_TIME, agents);agentIncomeTable.addDoubleColumn("CurrentIncome", DataAgent.INCOME);

Table averageTable = database.addTable("Wealth", Table.PK_SIMULATION_TIME);averageTable.addDoubleColumn("Average", new MeanArrayFunction(agentsWealth));averageTable.addDoubleColumn("Min", new MinArrayFunction.Double(agentsWealth));averageTable.addDoubleColumn("Max", new MaxArrayFunction.Double(agentsWealth));

database.openDatabase();}

jas.statistics.db.*

Page 9: JAS 1.0:  New features

Database: output

RUNS table

AgentIncometable

jas.statistics.db.*

Page 10: JAS 1.0:  New features

Graphs

Graphs are based on the JGraphT library We introduced the RelationalAgent template JAS provides:

A graph drawer A graph visual editor Layout managers (by R.Boero) Social Network Analysis statistics (by R.Boero) Support for GraphML I/O format

jas.graph.*

Page 11: JAS 1.0:  New features

Graph based models

Topological models: the agents are in relation with other agents and move in the space

Abstract relational models: the agent localization is managed by the layer managers

jas.graph.*

Page 12: JAS 1.0:  New features

Graph viewer and SNA

jas.graph.*

Page 13: JAS 1.0:  New features

Some other new features

Artificial neural networks can now save and load data (weights, network structure and data sets) using the XML format

The AgentList object is able to add or remove objects during list iteration

Page 14: JAS 1.0:  New features

Under construction

A discrete-event library to easily design workflow simulations

How-tos and examples on GA, ANN, …

Page 15: JAS 1.0:  New features

Thank you

http://jaslibrary.sourceforge.net

Michele Sonnessa([email protected])