|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Info
com.swath.Identity
This class represents an identity and is either a trader or a corporation.
Trader,
Corporation| Method Summary | |
abstract java.lang.Object |
clone()
|
abstract boolean |
equals(java.lang.Object obj)
Compares this identity to another one. |
Corporation |
getCorporation()
Returns the corporation. |
Trader |
getTrader()
Returns the trader. |
boolean |
isCorporation()
Indicates if the identity is a corporation or not. |
boolean |
isRealPlayer()
Indicates if this is a real player or a computer controlled trader. |
boolean |
isTrader()
Indicates if the identity is a trader or not. |
boolean |
isUnknown()
Indicates if the identity is unknown or not. |
boolean |
isYou()
Indicates if this is you or not. |
boolean |
isYourCorporation()
Indicates if this is your corporation or not. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public abstract boolean equals(java.lang.Object obj)
obj - The other identity.
true if they are equal, otherwise false.isYou(),
isYourCorporation()
public abstract java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic boolean isTrader()
true if it is a trader, otherwise false.isCorporation(),
isUnknown(),
getTrader()public boolean isCorporation()
true if it is a corporation, otherwise false.isTrader(),
isUnknown(),
getCorporation()public boolean isUnknown()
true if it is unknown, otherwise false.isTrader(),
isCorporation()public Trader getTrader()
null if the identity is not a trader.isTrader(),
getCorporation()public Corporation getCorporation()
null if the identity is not a corporation.isCorporation(),
getTrader()public boolean isYou()
true if it is you, otherwise false.isRealPlayer(),
isYourCorporation(),
equals(Object)public boolean isRealPlayer()
true if this is a real player, otherwise false.isYou(),
isYourCorporation(),
equals(Object)public boolean isYourCorporation()
true if it is your corporation, otherwise false.isYou(),
isRealPlayer(),
equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||