org.jbrain.qlink.cmd.action
Class AbstractAction

java.lang.Object
  |
  +--org.jbrain.qlink.cmd.AbstractCommand
        |
        +--org.jbrain.qlink.cmd.action.AbstractAction
All Implemented Interfaces:
Action, Command
Direct Known Subclasses:
AbortDownload, AbortPosting, AbortSelectList, Abstract2StringAction, AbstractAddAccount, AbstractChatAction, AbstractDialogAction, AbstractIDAction, AbstractMenuItem, AbstractStringAction, AcceptingQuestions, AcceptInvite, AcceptInviteAck, AcceptRestart, AddAccountInSlot, AnonChatSend, C2, CancelOLM, CancelPartnerSearch, ChangeAccessCode, ChatDialogAllocated, ChatDialogClose, ChatDialogNo, ChatDialogYes, ClearExtraAccounts, ClearScreen, D2, DeclineInvite, DeclineRestart, DeleteAccountInSlot, DeleteAccountInSlotAck, DialogAllocated, DialogCancel, DialogNo, DialogYes, DisableEcho, DisplayMainMenu, DuplicateLogin, E2, EmailCanceled, EnableEcho, EnterAuditorium, EnterBoxOffice, EnterChat, EnterExtRoom, EnterMessageBoard, ExcludeMe, ExtIdentifyUser, FileTextAck, FindMorePartners, FindPartners, FindPartnersAck, GameCannotBeInitiated, GameLine, GameMove, GatewayDisconnect, GatewayEnter, GatewayMoreAck, IncludeMe, InitDownload, InitPosting, InvalidAccount, InvalidatedAccount, InvalidGameID, InviteToGame, JAM, LeaveChat, LeaveGame, ListGames, ListMoreRooms, ListRooms, LoadGame, LoadObservedGame, Login, Logoff, LogoffAck, LostConnection, MC, NewMail, NoEmail, NoGames, NoMoreMoves, ObserveGame, OLMCancelled, PartnerSearchStatusRequest, PauseRoomInfo, PlayBackMoves, PlayBackMovesAck, PostingItem, PrepGame, ReadEmail, ReadEmailAck, RejectingQuestions, RequestGame, RequestGameRestart, RequestGameStart, RequestToObserve, RestartGame, RestartGameAck, ResumeService, RoomLine, SelectMoreList, SendOLMNAck, StartDownload, StartGame, StartObservedGame, SuspendServiceAck, Test, TransmitData, UnknownAction, UpdatedCode, UserInPrivateRoom, UserInvalid, UserNotOnline, UserUnavailable, ZA

public abstract class AbstractAction
extends AbstractCommand
implements Action


Field Summary
static byte CMD_ACTION
           
 
Fields inherited from class org.jbrain.qlink.cmd.AbstractCommand
_iCalculatedCRC, _iReportedCRC
 
Fields inherited from interface org.jbrain.qlink.cmd.Command
CMD_START
 
Constructor Summary
AbstractAction(byte[] data, int start, int len)
           
AbstractAction(java.lang.String action)
           
 
Method Summary
protected  void finalizeCmd(byte[] data)
           
 java.lang.String getAction()
           
 byte[] getBytes()
           
protected  byte[] getBytes(java.lang.String str)
           
 java.lang.String getName()
           
protected  java.lang.String getString(byte[] data, int i, int j)
           
 
Methods inherited from class org.jbrain.qlink.cmd.AbstractCommand
getCommand, getRecvSequence, getSendSequence, setRecvSequence, setSendSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbrain.qlink.cmd.Command
getCommand, getRecvSequence, getSendSequence, setRecvSequence, setSendSequence
 

Field Detail

CMD_ACTION

public static final byte CMD_ACTION
See Also:
Constant Field Values
Constructor Detail

AbstractAction

public AbstractAction(byte[] data,
                      int start,
                      int len)
               throws CRCException

AbstractAction

public AbstractAction(java.lang.String action)
Method Detail

getString

protected java.lang.String getString(byte[] data,
                                     int i,
                                     int j)
Returns:

getBytes

protected byte[] getBytes(java.lang.String str)

getAction

public java.lang.String getAction()
Specified by:
getAction in interface Action

finalizeCmd

protected void finalizeCmd(byte[] data)
Overrides:
finalizeCmd in class AbstractCommand

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface Command
Overrides:
getBytes in class AbstractCommand

getName

public java.lang.String getName()
Specified by:
getName in interface Command
Overrides:
getName in class AbstractCommand