All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astra.lang.AgentState Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy