astra.lang.AgentState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-apis Show documentation
Show all versions of astra-apis Show documentation
Base project for ASTRA applications
package astra.lang;
import java.io.Serializable;
/**
* This is not an API - it is support class that us used by the
* {@link System} API.
*
* @author Rem Collier
*
*/
public class AgentState implements Serializable {
private static final long serialVersionUID = 8494110376318693019L;
public String name;
public String type;
public byte[] beliefs;
/**
* A container to hold the state of an agent (this is not used in
* execution, but can be used to store, retrieve, or transfer the
* agents state).
*
* @param name the name of the agent
* @param type the type of the agent
* @param beliefs a byte array containing a binary representation of the beliefs of the agent
*/
public AgentState(String name, String type, byte[] beliefs) {
this.name = name;
this.type = type;
this.beliefs = beliefs;
}
}