com.esf.device.modem.channel.service
Class ModemCommand

java.lang.Object
  extended by com.esf.device.modem.channel.service.ModemCommand

public class ModemCommand
extends java.lang.Object

Describes modem command

Author:
ilya.binshtok

Constructor Summary
ModemCommand(CnS cmd)
          CnS command constructor
ModemCommand(java.lang.String cmd)
          AT command constructor
 
Method Summary
 java.lang.String getAtCommand()
          Reports AT command
 CnS getCnsCommand()
          Reports CnS command
 int getType()
          Reports command type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModemCommand

public ModemCommand(java.lang.String cmd)
AT command constructor

Parameters:
cmd - - AT command

ModemCommand

public ModemCommand(CnS cmd)
CnS command constructor

Parameters:
cmd - - CnS command
Method Detail

getType

public int getType()
Reports command type. (e.g. AT or CnS)

Returns:
command type

getAtCommand

public java.lang.String getAtCommand()
Reports AT command

Returns:
AT command

getCnsCommand

public CnS getCnsCommand()
Reports CnS command

Returns:
CnS command