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 SummaryFields Modifier and Type Field Description protected java.util.ListcardsAttribute for slot cards.
 - 
Constructor SummaryConstructors Constructor Description RequestDraw()Default Constructor.
 - 
Method SummaryAll 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- 
getCardspublic Card[] getCards() Get the cards of this RequestDraw.- Returns:
- cards
 
 - 
setCardspublic void setCards(Card[] cards) Set the cards of this RequestDraw.- Parameters:
- cards- the value to be set
 
 - 
getCardpublic Card getCard(int idx) Get an cards of this RequestDraw.- Parameters:
- idx- The index.
- Returns:
- cards
 
 - 
setCardpublic void setCard(int idx, Card card)Set a card to this RequestDraw.- Parameters:
- idx- The index.
- card- a value to be added
 
 - 
addCardpublic void addCard(Card card) Add a card to this RequestDraw.- Parameters:
- card- a value to be removed
 
 - 
removeCardpublic boolean removeCard(Card card) Remove a card from this RequestDraw.- Parameters:
- card- a value to be removed
- Returns:
- True when the cards have changed.
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this RequestDraw.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-