GithubHelp home page GithubHelp logo

Comments (4)

dhixsingh avatar dhixsingh commented on June 7, 2024

Available since 71ae240. Alternatively, BDI agents can now be specified using option --x-load-bdi-agents-from-matsim-plans-file and specifying a jill config placecholder agents:[] that gets filled based on what is specified in the MATSim plans file.

String [] args = {
"--config", "scenarios/mount-alexander-shire/maldon-100-with-emergency-vehicles/scenario_main.xml",
"--logfile", utils.getOutputDirectory()+"../scenario.log",
"--loglevel", "INFO",
// "--plan-selection-policy", "FIRST", // ensures it is deterministic, as default is RANDOM
"--seed", "12345",
"--safeline-output-file-pattern", utils.getOutputDirectory()+"../safeline.%d%.out",
"--matsim-output-directory", utils.getOutputDirectory(),
"--jillconfig", "--config={"+
//"agents:[{classname:io.github.agentsoz.ees.agents.Resident, args:null, count:10},"+
// "{classname:io.github.agentsoz.ees.agents.Responder, args:[--respondToUTM, \"Tarrengower Prison,237100,5903400\"], count:3}],"+
"agents:[],"+ // must be this string; will be replaced based on MATSim plans file
"logLevel: WARN,"+
"logFile: \""+utils.getOutputDirectory()+"../jill.log\","+
"programOutputFile: \""+utils.getOutputDirectory()+"../jill.out\","+
"randomSeed: 12345"+ // jill random seed
//"numThreads: 1"+ // run jill in single-threaded mode so logs are deterministic
"}",
"--x-load-bdi-agents-from-matsim-plans-file", "true", // Load agents from MATSim plans file
};

from bdi-abm-integration.

dhixsingh avatar dhixsingh commented on June 7, 2024

/cc @osbornejr

from bdi-abm-integration.

dhixsingh avatar dhixsingh commented on June 7, 2024

This doesn't allow per-agent-instance config yet, only per-agent-type. Still to do.

from bdi-abm-integration.

dhixsingh avatar dhixsingh commented on June 7, 2024

Available since e0b4583. Test Maldon100WithEmergencyVehiclesTest test for this, where three responders now attend to three different locations based on configuration in the MATSim population file (see below):

<person id="10">
<attributes>
<attribute name="BDIAgentType" class="java.lang.String">io.github.agentsoz.ees.agents.Responder</attribute>
<!--<attribute name="BDIAgentInitArgs" class="java.lang.String">["respondToUTM", "Tarrengower Prison,237100,5903400"]</attribute>-->
<attribute name="--respondToUTM" class="java.lang.String">Tarrengower Prison,237100,5903400</attribute>
</attributes>

And further below:

<person id="11">
<attributes>
<attribute name="BDIAgentType" class="java.lang.String">io.github.agentsoz.ees.agents.Responder</attribute>
<!--<attribute name="BDIAgentInitArgs" class="java.lang.String">["respondToUTM", "Sandhills Lane,237600,5905400"]</attribute>-->
<attribute name="--respondToUTM" class="java.lang.String">Sandhills Lane,237600,5905400</attribute>
</attributes>

from bdi-abm-integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.