Presentation is loading. Please wait.

Presentation is loading. Please wait.

Multiagent systems a practical approach to MAS construction in Java (using Boris) Simon Lynch

Similar presentations


Presentation on theme: "Multiagent systems a practical approach to MAS construction in Java (using Boris) Simon Lynch"— Presentation transcript:

1 multiagent systems a practical approach to MAS construction in Java (using Boris) Simon Lynch s.c.lynch@tees.ac.uk

2 software architecture distributed mixed language concurrent

3 Boris agents – why? MultiAgent Systems... advanced s/w architectures dynamic, distributed decentralised control social, goal-based mobility, platform independence design-time autonomy reuse

4 Boris agents – what? independent software(?) entities –send & receive messages like objects but... –distributed –autonomous at design & execution –have their own process thread –tighter encapsulation & interfaces –task oriented

5 Boris agents – types? various types... web based, brokered small & mobile larger scale / intelligent...etc...

6 Boris agents - how? in Java with Boris (because you can also use C#, Lisp...) analogy... agents & GUI components GUI events & message events

7 Boris example Portal p = new Portal( portal-name ); Agent a = new Agent( agent-name ); a.addMessageListener(new MessageListener() { public void messageReceived(String from, String to, String msg, MsgId id) {...code body... } }); p.addAgent( a ); Panel p = new Panel(); Button b = new Button( text ); b.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent event ) {...code body... } }); p.add( b );

8 Sending messages Portal p = new Portal( portal-name ); Agent sue = new Agent( "sue" ); sue.addMessageListener(new MessageListener() { public void messageReceived(String from, String to, String msg, MsgId id) {...code body... } }); p.addAgent( sue ); Agent sam = new Agent( "sam" ); p.addAgent( sam );... sam.sendMessage( "sue", "hello sue" );...

9 Virtual Networks normally, agents are distributed across multiple VMs multi-language VMs multiple machines Boris uses network concept based on... Portals Routers

10 agents, portals, routers & VMs MAS design... a collection of communicating agents

11 agents, portals & routers agents communicate via portals portals communicate via router(s)

12 agents, portals & routers agents who share a portal communicate directly routers not necessary for single-portal MASs

13 agents, portals & routers cross-portal communication requires a router even if portals share a VM

14 connecting portals to routers portal methods void connectToGrid( InetAddress host, int portNo ) void connectToGrid( int portNo ) void connectToGrid( InetAddress host ) void connectToGrid( ) NB: connection in separate thread may take few seconds over internet

15 using the console

16 loading agents import boris.kernel.*;..... public class MyClass {public MyClass( Portal portal, String cmdLine ) {//--- set up agent ---- final Agent agent = new Agent( name ); portal.addAgent( agent );..... }..... }

17 tracking activity


Download ppt "Multiagent systems a practical approach to MAS construction in Java (using Boris) Simon Lynch"

Similar presentations


Ads by Google