Jadex 0.96

jadex.examples.blackjack
Class Card

java.lang.Object
  extended by jadex.examples.blackjack.CardData
      extended by jadex.examples.blackjack.Card
All Implemented Interfaces:
BeanInfo

public class Card
extends CardData

Editable Java class for concept Card of blackjack_beans ontology.


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
Card()
          Default Constructor.
Card(Card proto)
          Clone Constructor.
Card(String type, String color, int value)
          Default Constructor.
 
Method Summary
 Object clone()
          Get a clone of this Card.
 boolean equals(Object obj)
          Test the equality of this Card and an object obj.
 String toString()
          Get a string representation of this Card.
 
Methods inherited from class jadex.examples.blackjack.CardData
getAdditionalBeanInfo, getBeanDescriptor, getColor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors, getType, getValue, loadImage, setColor, setType, setValue
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Card

public Card()
Default Constructor.
Create a new Card.


Card

public Card(String type,
            String color,
            int value)
Default Constructor.
Create a new Card.


Card

public Card(Card proto)
Clone Constructor.
Create a new Card.
Copy all attributes from proto to this instance.

Parameters:
proto - The prototype instance.
Method Detail

toString

public String toString()
Get a string representation of this Card.

Overrides:
toString in class CardData
Returns:
The string representation.

clone

public Object clone()
Get a clone of this Card.

Overrides:
clone in class Object
Returns:
a shalow copy of this instance.

equals

public boolean equals(Object obj)
Test the equality of this Card and an object obj.

Overrides:
equals in class Object
Parameters:
obj - the object this test will be performed with
Returns:
false if obj is not of Card class, true if all attributes are equal.

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.