grs.pds
Class Command

java.lang.Object
  |
  +--grs.pds.Command
All Implemented Interfaces:
SQLData

public class Command
extends Object
implements SQLData

Author:
guym E-Kernel PEF command.

Field Summary
 short cmd_id
          Command id number
 short opcode
          Opcode number
 
Constructor Summary
Command()
          Create command with unset opcode and cmd_id.
Command(short opcode, short cmd_id)
          Create a command entry with the given opcode and cmd_id.
 
Method Summary
 String getSQLTypeName()
          Return the SQL type name, given when read from the database.
 void readSQL(SQLInput in, String type)
           
 void writeSQL(SQLOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opcode

public short opcode
Opcode number


cmd_id

public short cmd_id
Command id number

Constructor Detail

Command

public Command()
Create command with unset opcode and cmd_id.


Command

public Command(short opcode,
               short cmd_id)
Create a command entry with the given opcode and cmd_id.

Parameters:
opcode - Opcode.
cmd_id - Command id
Method Detail

getSQLTypeName

public String getSQLTypeName()
Return the SQL type name, given when read from the database.

Specified by:
getSQLTypeName in interface SQLData
See Also:
SQLData.getSQLTypeName()

readSQL

public void readSQL(SQLInput in,
                    String type)
             throws SQLException
Specified by:
readSQL in interface SQLData
SQLException
See Also:
SQLData.readSQL(SQLInput, String)

writeSQL

public void writeSQL(SQLOutput out)
              throws SQLException
Specified by:
writeSQL in interface SQLData
SQLException
See Also:
SQLData.writeSQL(SQLOutput)


2001 Mars Odyssey Gamma Ray Spectrometer Team