public class RequestDraw
extends java.lang.Object
implements jadex.bridge.fipa.IComponentAction
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
cards
Attribute for slot cards.
|
Constructor and Description |
---|
RequestDraw()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCard(Card card)
Add a card to this RequestDraw.
|
Card |
getCard(int idx)
Get an cards of this RequestDraw.
|
Card[] |
getCards()
Get the cards of this RequestDraw.
|
boolean |
removeCard(Card card)
Remove a card from this RequestDraw.
|
void |
setCard(int idx,
Card card)
Set a card to this RequestDraw.
|
void |
setCards(Card[] cards)
Set the cards of this RequestDraw.
|
java.lang.String |
toString()
Get a string representation of this RequestDraw.
|
public Card[] getCards()
public void setCards(Card[] cards)
cards
- the value to be setpublic Card getCard(int idx)
idx
- The index.public void setCard(int idx, Card card)
idx
- The index.card
- a value to be addedpublic void addCard(Card card)
card
- a value to be removedpublic boolean removeCard(Card card)
card
- a value to be removedpublic java.lang.String toString()
toString
in class java.lang.Object