jadex.bdi.examples.blackjack.GameStateData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
/*
* 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