io.github.agentsoz.abmjack.env.GenericActGoal 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.abmjack.shared.ActionManager;
/**
*
* @author Alex Lutman
*
*/
/******** Start PDT Design Block *** DO NOT EDIT IT *********/
public class GenericActGoal extends aos.jack.jak.event.BDIGoalEvent {
public io.github.agentsoz.abmjack.shared.ActionManager am;
public java.lang.String actionID;
public java.lang.Object[] parameters;
private final static java.lang.String[] __eventVariableNames = {
"am",
"actionID",
"parameters"};
private final static java.lang.String[] __eventVariableTypes = {
"ActionManager",
"String",
"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.GenericActGoal act(io.github.agentsoz.abmjack.shared.ActionManager am, java.lang.String actionID, java.lang.Object[] parameters)
{
io.github.agentsoz.abmjack.env.GenericActGoal tmp = new io.github.agentsoz.abmjack.env.GenericActGoal();
tmp.init(this);
return tmp.act_body(am,actionID,parameters);
}
private io.github.agentsoz.abmjack.env.GenericActGoal act_body(io.github.agentsoz.abmjack.shared.ActionManager am, java.lang.String actionID, java.lang.Object[] parameters)
{
this.am = am;
this.actionID = actionID;
this.parameters = parameters;
return this;
}
public GenericActGoal()
{
}
public java.lang.String stateInfo()
{
return "io/github/agentsoz/abmjack/env/GenericActGoal.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(am);
}
case 1:
{
return aos.util.ToObject.box(actionID);
}
case 2:
{
return aos.util.ToObject.box(parameters);
}
default:
{
throw new java.lang.IndexOutOfBoundsException("Event " + this + " does not have variable number " + n);
}
}
}
}