OpenECHO
 All Classes Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
com.sonycsl.echo.EchoFrame Class Reference

Public Member Functions

 EchoFrame (short srcEchoClassCode, byte srcEchoInstanceCode, short dstEchoClassCode, byte dstEchoInstanceCode, String dstEchoAddress, byte esv)
 
 EchoFrame (String srcEchoAddress, byte[] data)
 
void setTID (short tid)
 
short getTID ()
 
byte getESV ()
 
short getSrcEchoClassCode ()
 
byte getSrcEchoInstanceCode ()
 
String getSrcEchoAddress ()
 
short getDstEchoClassCode ()
 
void setDstEchoInstanceCode (byte dstEchoInstanceCode)
 
byte getDstEchoInstanceCode ()
 
void setDstEchoAddress (String dstEchoAddress)
 
String getDstEchoAddress ()
 
List< EchoPropertygetPropertyList ()
 
EchoProperty[] getProperties ()
 
byte[] getFrameByteArray ()
 
void addPropertyForResponse (byte epc)
 
void addPropertyForResponse (byte epc, byte[] edt)
 
void addPropertyForResponse (EchoProperty property)
 
void addProperty (EchoProperty property)
 
EchoFrame copy ()
 
String toString ()
 

Static Public Member Functions

static EchoFrame getEchoFrameFromStream (String srcEchoAddress, DataInputStream in) throws IOException, InterruptedException
 

Static Public Attributes

static final int MIN_FRAME_SIZE = 12
 
static final byte ESV_SETI = 0x60
 
static final byte ESV_SETC = 0x61
 
static final byte ESV_GET = 0x62
 
static final byte ESV_INF_REQ = 0x63
 
static final byte ESV_SET_RES = 0x71
 
static final byte ESV_GET_RES = 0x72
 
static final byte ESV_INF = 0x73
 
static final byte ESV_INFC = 0x74
 
static final byte ESV_INFC_RES = 0x7A
 
static final byte ESV_SETI_SNA = 0x50
 
static final byte ESV_SETC_SNA = 0x51
 
static final byte ESV_GET_SNA = 0x52
 
static final byte ESV_INF_SNA = 0x53
 
static final byte ESV_SET_NO_RES = 0x70
 
static final byte ESV_SET_GET = 0x6E
 
static final byte ESV_SET_GET_RES = 0x7E
 
static final byte ESV_SET_GET_SNA = 0x5E
 

Protected Member Functions

 EchoFrame (short srcEchoClassCode, byte srcEchoInstanceCode, String srcEchoAddress, short dstEchoClassCode, byte dstEchoInstanceCode, String dstEchoAddress, byte esv, short tid, List< EchoProperty > propertyList)
 

Protected Attributes

List< EchoPropertymPropertyList
 

Detailed Description

ECHONET Liteの電文(フレーム)を作るクラス

Definition at line 37 of file EchoFrame.java.

Constructor & Destructor Documentation

com.sonycsl.echo.EchoFrame.EchoFrame ( short  srcEchoClassCode,
byte  srcEchoInstanceCode,
short  dstEchoClassCode,
byte  dstEchoInstanceCode,
String  dstEchoAddress,
byte  esv 
)

Definition at line 80 of file EchoFrame.java.

com.sonycsl.echo.EchoFrame.EchoFrame ( String  srcEchoAddress,
byte[]  data 
)

Definition at line 99 of file EchoFrame.java.

com.sonycsl.echo.EchoFrame.EchoFrame ( short  srcEchoClassCode,
byte  srcEchoInstanceCode,
String  srcEchoAddress,
short  dstEchoClassCode,
byte  dstEchoInstanceCode,
String  dstEchoAddress,
byte  esv,
short  tid,
List< EchoProperty propertyList 
)
protected

Definition at line 195 of file EchoFrame.java.

Member Function Documentation

void com.sonycsl.echo.EchoFrame.addProperty ( EchoProperty  property)

Definition at line 339 of file EchoFrame.java.

void com.sonycsl.echo.EchoFrame.addPropertyForResponse ( byte  epc)

Definition at line 304 of file EchoFrame.java.

void com.sonycsl.echo.EchoFrame.addPropertyForResponse ( byte  epc,
byte[]  edt 
)

Definition at line 308 of file EchoFrame.java.

void com.sonycsl.echo.EchoFrame.addPropertyForResponse ( EchoProperty  property)

Definition at line 313 of file EchoFrame.java.

EchoFrame com.sonycsl.echo.EchoFrame.copy ( )

Definition at line 343 of file EchoFrame.java.

String com.sonycsl.echo.EchoFrame.getDstEchoAddress ( )

Definition at line 259 of file EchoFrame.java.

short com.sonycsl.echo.EchoFrame.getDstEchoClassCode ( )

Definition at line 243 of file EchoFrame.java.

byte com.sonycsl.echo.EchoFrame.getDstEchoInstanceCode ( )

Definition at line 251 of file EchoFrame.java.

static EchoFrame com.sonycsl.echo.EchoFrame.getEchoFrameFromStream ( String  srcEchoAddress,
DataInputStream  in 
) throws IOException, InterruptedException
static

Definition at line 153 of file EchoFrame.java.

byte com.sonycsl.echo.EchoFrame.getESV ( )

Definition at line 227 of file EchoFrame.java.

byte [] com.sonycsl.echo.EchoFrame.getFrameByteArray ( )

Definition at line 271 of file EchoFrame.java.

EchoProperty [] com.sonycsl.echo.EchoFrame.getProperties ( )

Definition at line 267 of file EchoFrame.java.

List<EchoProperty> com.sonycsl.echo.EchoFrame.getPropertyList ( )

Definition at line 263 of file EchoFrame.java.

String com.sonycsl.echo.EchoFrame.getSrcEchoAddress ( )

Definition at line 239 of file EchoFrame.java.

short com.sonycsl.echo.EchoFrame.getSrcEchoClassCode ( )

Definition at line 231 of file EchoFrame.java.

byte com.sonycsl.echo.EchoFrame.getSrcEchoInstanceCode ( )

Definition at line 235 of file EchoFrame.java.

short com.sonycsl.echo.EchoFrame.getTID ( )

Definition at line 223 of file EchoFrame.java.

void com.sonycsl.echo.EchoFrame.setDstEchoAddress ( String  dstEchoAddress)

Definition at line 255 of file EchoFrame.java.

void com.sonycsl.echo.EchoFrame.setDstEchoInstanceCode ( byte  dstEchoInstanceCode)

Definition at line 247 of file EchoFrame.java.

void com.sonycsl.echo.EchoFrame.setTID ( short  tid)

Definition at line 219 of file EchoFrame.java.

String com.sonycsl.echo.EchoFrame.toString ( )

Definition at line 352 of file EchoFrame.java.

Member Data Documentation

final byte com.sonycsl.echo.EchoFrame.ESV_GET = 0x62
static

Definition at line 47 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_GET_RES = 0x72
static

Definition at line 50 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_GET_SNA = 0x52
static

Definition at line 56 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_INF = 0x73
static

Definition at line 51 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_INF_REQ = 0x63
static

Definition at line 48 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_INF_SNA = 0x53
static

Definition at line 57 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_INFC = 0x74
static

Definition at line 52 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_INFC_RES = 0x7A
static

Definition at line 53 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SET_GET = 0x6E
static

Definition at line 61 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SET_GET_RES = 0x7E
static

Definition at line 62 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SET_GET_SNA = 0x5E
static

Definition at line 63 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SET_NO_RES = 0x70
static

Definition at line 59 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SET_RES = 0x71
static

Definition at line 49 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SETC = 0x61
static

Definition at line 46 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SETC_SNA = 0x51
static

Definition at line 55 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SETI = 0x60
static

Definition at line 45 of file EchoFrame.java.

final byte com.sonycsl.echo.EchoFrame.ESV_SETI_SNA = 0x50
static

Definition at line 54 of file EchoFrame.java.

final int com.sonycsl.echo.EchoFrame.MIN_FRAME_SIZE = 12
static

Definition at line 39 of file EchoFrame.java.

List<EchoProperty> com.sonycsl.echo.EchoFrame.mPropertyList
protected

Definition at line 75 of file EchoFrame.java.


The documentation for this class was generated from the following file: