Package br.org.scadabr.dnp34j.master.common.utils

Examples of br.org.scadabr.dnp34j.master.common.utils.Buffer


   * @param parent
   *            DOCUMENT ME!
   */
  public LnkSnd(DNPUser user) throws Exception {
    this.user = user;
    lnkSndBuffer = new Buffer(M);
    lnkSndQueue = new Queue();
    lnkSndLock = new Lock();
    conLnkSndLock = new Lock();
    frameRcv = new Buffer(S);
    frameSnd = new Buffer(S);
    previousFrameSnd = new Buffer(M);

    addressToReportTo = 1;
  }
View Full Code Here


  // Constructor
  // =============================================================================
  public AppSnd(DNPUser user) throws Exception {
    this.user = user;

    appSndBuffer = new Buffer(M);
    appSndQueue = new Queue();
    conAppSndBuffer = new Buffer(S);
    conAppSndQueue = new Queue();
    appSndLock = new Lock();
    conAppSndLock = new Lock(UNLOCKED);
    frameRcv = new Buffer(M);
    previousFrameSnd = new Buffer(M);

    this.config = user.getConfig();
  }
View Full Code Here

   * Build a request from a user command This one is mostly used with a READ
   * function
   */
  public Buffer buildRequestMsg(byte FC, byte group, byte variation,
      boolean withData) {
    Buffer requestFrame = new Buffer(S);
    requestFrame.writeBytes(buildHeader(FC, group, variation));
    requestFrame.writeByte(ALL_POINTS);

    // if (withData) {
    // requestFrame.writeBytes(dataMap.get(group, variation, dataMap
    // .getIndexMin(group), dataMap.getIndexMax(group)));
    // }
View Full Code Here

TOP

Related Classes of br.org.scadabr.dnp34j.master.common.utils.Buffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.