io.github.agentsoz.bushfire.jack.events.Replan_areaG Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bushfire Show documentation
Show all versions of bushfire 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 io.github.agentsoz.bushfire.jack.events;
import aos.jack.jak.event.Event;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Sewwandi Perera
*/
public class Replan_areaG extends aos.jack.jak.event.Event {
public java.lang.String areaName;
public long executeTime;
final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger("");
private final static java.lang.String[] __eventVariableNames = {
"areaName",
"executeTime",
"logger"};
private final static java.lang.String[] __eventVariableTypes = {
"String",
"long",
"Logger"};
public java.lang.String getDocumentation()
{
return "/**\n * @author Sewwandi Perera\n */\n";
}
public io.github.agentsoz.bushfire.jack.events.Replan_areaG post(java.lang.String name, long time)
{
io.github.agentsoz.bushfire.jack.events.Replan_areaG tmp = new io.github.agentsoz.bushfire.jack.events.Replan_areaG();
tmp.init(this);
return tmp.post_body(name,time);
}
private io.github.agentsoz.bushfire.jack.events.Replan_areaG post_body(java.lang.String name, long time)
{
logger.trace("Replan_areaG is initiated for area " + name);
areaName = name;
executeTime = time;
return this;
}
public Replan_areaG()
{
}
public java.lang.String stateInfo()
{
return "io/github/agentsoz/bushfire/jack/events/Replan_areaG.event [" + super.stateInfo() + "]";
}
public java.lang.String[] variableNames()
{
return __eventVariableNames;
}
public java.lang.String[] variableTypes()
{
return __eventVariableTypes;
}
public java.lang.Object getVariable(int n)
{
switch (n) {
case 0:
{
return aos.util.ToObject.box(areaName);
}
case 1:
{
return aos.util.ToObject.box(executeTime);
}
case 2:
{
return aos.util.ToObject.box(logger);
}
default:
{
throw new java.lang.IndexOutOfBoundsException("Event " + this + " does not have variable number " + n);
}
}
}
}