
scenarioTWO.capabilities.AssessThreatC Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bushfire-tutorial Show documentation
Show all versions of bushfire-tutorial Show documentation
Application using JACK-MATSim integration
The newest version!
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
This code is generated by JAC version 5.6 by
Agent Oriented Software. http://www.agent-software.com.au
DO NOT ALTER THIS CODE AND DO NOT REMOVE THIS COMMENT
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
package scenarioTWO.capabilities;
import aos.jack.jak.agent.Capability;
import aos.jack.jak.agent.NameSpace;
import aos.jack.jak.agent.Agent;
import scenarioTWO.data.depTime;
import scenarioTWO.events.AssessThreatG;
import io.github.agentsoz.abmjack.env.GenericActions;
import scenarioTWO.plans.GoHomeP;
import scenarioTWO.plans.LeaveNowP;
import java.lang.Object;
public class AssessThreatC extends aos.jack.jak.agent.Capability {
public scenarioTWO.data.depTime depTimesBDB_dat;
public io.github.agentsoz.abmjack.env.GenericActions genericactions_cap;
// Inner capabilities are declared here.
/******** End PDT Design Block *** DO NOT EDIT IT *********/
/* Action Reminder:
Name: drive_to(home)
*/
/* Action Reminder:
Name: drive_to(evac_dest)
*/
//other Data Member and Method definitions.
/* Constructor */
public AssessThreatC()
{
super();
}
public void __init1()
{
setNamedCreator("depTimesBDB_dat","scenarioTWO.data.depTime",new aos.jack.jak.agent.DataCreator(true){
public java.lang.Object create()
{
return __named_data_depTimesBDB_dat();
}
},true);
if (genericactions_cap == null) {
genericactions_cap = new io.github.agentsoz.abmjack.env.GenericActions(this);
genericactions_cap.__initCapability(this,"genericactions_cap");
}
genericactions_cap.__init1();
}
public void __init2()
{
getNamedObject("depTimesBDB_dat","scenarioTWO.data.depTime");
genericactions_cap.__init2();
autorun();
}
synchronized public void __init_desc()
{
externals.put("scenarioTWO.events.AssessThreatG","scenarioTWO.events.AssessThreatG");
addNamedObject("depTimesBDB_dat","scenarioTWO.data.depTime",0);
genericactions_cap = new io.github.agentsoz.abmjack.env.GenericActions(this);
genericactions_cap.__initCapability(this,"genericactions_cap");
genericactions_cap.init_desc();
addEvent("scenarioTWO.events.AssessThreatG",aos.jack.jak.agent.Agent.HANDLED_EVENT);
addPlan("scenarioTWO.plans.GoHomeP",0);
addPlan("scenarioTWO.plans.LeaveNowP",0);
}
public AssessThreatC(aos.jack.jak.agent.NameSpace outer)
{
super(outer);
}
synchronized public void __bindNames()
{
super.__bindNames();
genericactions_cap.__bindNames();
__bindToPlan("scenarioTWO.plans.GoHomeP");
__bindToPlan("scenarioTWO.plans.LeaveNowP");
}
private scenarioTWO.data.depTime __named_data_depTimesBDB_dat()
{
if (depTimesBDB_dat != null)
return depTimesBDB_dat;
depTimesBDB_dat = (scenarioTWO.data.depTime) findShared("depTimesBDB_dat","scenarioTWO.data.depTime");
if (depTimesBDB_dat != null) {
setNamedObject("depTimesBDB_dat","scenarioTWO.data.depTime",depTimesBDB_dat);
return depTimesBDB_dat;
}
depTimesBDB_dat = new scenarioTWO.data.depTime();
if (!depTimesBDB_dat.attach(this))
depTimesBDB_dat = null;
addShared("depTimesBDB_dat","scenarioTWO.data.depTime",depTimesBDB_dat);
setNamedObject("depTimesBDB_dat","scenarioTWO.data.depTime",depTimesBDB_dat);
return depTimesBDB_dat;
}
public void setEnabled(boolean t)
{
super.setEnabled(t);
genericactions_cap.setEnabled(t);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy