Package jadex.bdi.examples.blackjack
Class RequestDraw
- java.lang.Object
-
- jadex.bdi.examples.blackjack.RequestDraw
-
- All Implemented Interfaces:
IComponentAction
public class RequestDraw extends java.lang.Object implements IComponentAction
Java class for concept RequestDraw of blackjack_beans ontology.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListcardsAttribute for slot cards.
-
Constructor Summary
Constructors Constructor Description RequestDraw()Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCard(Card card)Add a card to this RequestDraw.CardgetCard(int idx)Get an cards of this RequestDraw.Card[]getCards()Get the cards of this RequestDraw.booleanremoveCard(Card card)Remove a card from this RequestDraw.voidsetCard(int idx, Card card)Set a card to this RequestDraw.voidsetCards(Card[] cards)Set the cards of this RequestDraw.java.lang.StringtoString()Get a string representation of this RequestDraw.
-
-
-
Method Detail
-
getCards
public Card[] getCards()
Get the cards of this RequestDraw.- Returns:
- cards
-
setCards
public void setCards(Card[] cards)
Set the cards of this RequestDraw.- Parameters:
cards- the value to be set
-
getCard
public Card getCard(int idx)
Get an cards of this RequestDraw.- Parameters:
idx- The index.- Returns:
- cards
-
setCard
public void setCard(int idx, Card card)Set a card to this RequestDraw.- Parameters:
idx- The index.card- a value to be added
-
addCard
public void addCard(Card card)
Add a card to this RequestDraw.- Parameters:
card- a value to be removed
-
removeCard
public boolean removeCard(Card card)
Remove a card from this RequestDraw.- Parameters:
card- a value to be removed- Returns:
- True when the cards have changed.
-
toString
public java.lang.String toString()
Get a string representation of this RequestDraw.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-