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

jadex.bdi.examples.blackjack.GameStateData Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

There is a newer version: 2.4
Show newest version
/*
 * GameStateData.java
 *
 * Generated by Protege plugin Beanynizer. 
 * Changes will be lost! 
 */
package jadex.bdi.examples.blackjack;

import java.util.ArrayList;
import java.util.List;


/**
 *  Java class for concept GameState of blackjack_beans ontology.
 */
public abstract class GameStateData implements jadex.commons.beans.BeanInfo 
{
	//-------- constants ----------

	//-------- attributes ----------

	/** Attribute for slot dealer. */
	protected  Player  dealer;

	/** Attribute for slot players. */
	protected  List  players;

	//-------- constructors --------

	/**
	 *  Default Constructor. 
* Create a new GameState. */ public GameStateData() { this.players = new ArrayList(); } //-------- accessor methods -------- /** * Get the dealer of this GameState. * @return dealer */ public Player getDealer() { return this.dealer; } /** * Set the dealer of this GameState. * @param dealer the value to be set */ public void setDealer(Player dealer) { this.dealer = dealer; } /** * Get the players of this GameState. * @return players */ public Player[] getPlayers() { return (Player[])players.toArray(new Player [players.size()]); } /** * Set the players of this GameState. * @param players the value to be set */ public void setPlayers(Player[] players) { this.players.clear(); for(int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy