io.github.agentsoz.abmjack.env.UpdateAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abm-jack Show documentation
Show all versions of abm-jack Show documentation
Allows the use of JACK (aosgrp.com/products/jack) as the underlying BDI system
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
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.abmjack.env;
/*
* #%L
* BDI-ABM Integration Package
* %%
* Copyright (C) 2014 - 2016 by its authors. See AUTHORS file.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import aos.jack.jak.event.BDIGoalEvent;
import io.github.agentsoz.bdiabm.data.ActionContent.State;
/**
*
* @author Alex Lutman
*
*/
/******** Start PDT Design Block *** DO NOT EDIT IT *********/
public class UpdateAction extends aos.jack.jak.event.BDIGoalEvent {
public java.lang.String actionID;
public io.github.agentsoz.bdiabm.data.ActionContent.State state;
public java.lang.Object[] params;
private final static java.lang.String[] __eventVariableNames = {
"actionID",
"state",
"params"};
private final static java.lang.String[] __eventVariableTypes = {
"String",
"State",
"Object[]"};
public java.lang.String getDocumentation()
{
return "/**\n * \n * @author Alex Lutman\n *\n */\n/******** Start PDT Design Block *** DO NOT EDIT IT *********/\n";
}
public io.github.agentsoz.abmjack.env.UpdateAction postEvent(java.lang.String actionID, io.github.agentsoz.bdiabm.data.ActionContent.State state, java.lang.Object[] params)
{
io.github.agentsoz.abmjack.env.UpdateAction tmp = new io.github.agentsoz.abmjack.env.UpdateAction();
tmp.init(this);
return tmp.postEvent_body(actionID,state,params);
}
private io.github.agentsoz.abmjack.env.UpdateAction postEvent_body(java.lang.String actionID, io.github.agentsoz.bdiabm.data.ActionContent.State state, java.lang.Object[] params)
{
this.actionID = actionID;
this.state = state;
this.params = params;
return this;
}
public UpdateAction()
{
}
public java.lang.String stateInfo()
{
return "io/github/agentsoz/abmjack/env/UpdateAction.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(actionID);
}
case 1:
{
return aos.util.ToObject.box(state);
}
case 2:
{
return aos.util.ToObject.box(params);
}
default:
{
throw new java.lang.IndexOutOfBoundsException("Event " + this + " does not have variable number " + n);
}
}
}
}