[Document new graph representation, added clicks solvable examples. bringert@cs.chalmers.se**20041213230624] < > { hunk ./doc/map-agent.html 20 -MapAgent is an OAA agent which displays a map. The agent has solvables -for drawing labelled edges on the map and for getting user clicks. +MapAgent is an OAA agent which displays a map showing a graph +on top of a bakground image. +The agent has solvables for drawing labelled edges on the map +and for getting user clicks on nodes. hunk ./doc/map-agent.html 35 -
MapAgent is currently feared towards transport networks and other +
MapAgent is currently geared towards transport networks and other hunk ./doc/map-agent.html 38 -
The agent is configured by a properties file. Here is and +
The agent is configured by a properties file. Here is an hunk ./doc/map-agent.html 42 -stops: /stops-gbg.txt -lines: /lines-gbg.txt -stopNames: /stops-gbg-sv.txt +graph: /gbg.dot hunk ./doc/map-agent.html 49 -
-Angered 750 1000 -AxelDahlstromsTorg 200 70 -Biskopsgarden 50 950 -Bergsjon 1000 1000 -- -
-edge_label number_of_rows_in_group -node_label -node_label weight_from_previous -node_label weight_from_previous -... -+
These are the properties used by MapAgent:
hunk ./doc/map-agent.html 51 -Example:
+-Edge groups are separated by an empty line. -
--Angered: Angered -AxelDahlstromsTorg: Axel Dahlströms torg -Biskopsgarden: Biskopsgården -Bergsjon: Bergsjön + ... +} hunk ./doc/map-agent.html 103 -$ java -cp $CLASSPATH:tramdemo.jar:. se.chalmers.cs.gf.tramdemo.MapAgent /gbg.properties -oaa_connect "tcp('${FAC_HOST}',${FAC_PORT})" +$ java -cp $CLASSPATH:tramdemo.jar se.chalmers.cs.gf.tramdemo.MapAgent /gbg.properties -oaa_connect "tcp('${FAC_HOST}',${FAC_PORT})" hunk ./doc/map-agent.html 123 -
click(Nodes)
, where Nodes
is a list of
+node labels that the click was close to.
+No clicks available:
++clicks(Clicks) +=> +clicks([]) ++
A single unambiguous click:
++clicks(Clicks) +=> +clicks([click(['Frihamnen'])]) ++
An ambiguous click:
++clicks(Clicks) +=> +clicks([click(['Klareberg','Tagene'])]) ++
Language given:
+Two unambigious clicks:
hunk ./doc/map-agent.html 230 -linearize(numerals, english, num(pot2as3(pot1as2(pot0as1(pot0(n3))))), Str) +clicks(Clicks) hunk ./doc/map-agent.html 232 -linearize(numerals, english, num(pot2as3(pot1as2(pot0as1(pot0(n3))))), three) +clicks([click(['Ullevi']),click(['Centralstationen'])]) }