Package jpvm

Examples of jpvm.jpvmException


  }

  public void unpack(Neuron d[], int n, int stride)
      throws jpvmException {
    if(dataType != jpvmDataType.jpvmNeuron) {
        throw new jpvmException("buffer type mismatch, upktid.");
    }
    if(stride==1) {
      System.arraycopy(neuronArray,0,d,0,n);
    }
    else {
View Full Code Here


  }

  public void unpack(Transmissible d[], int n, int stride)
      throws jpvmException {
    if(dataType != jpvmDataType.jpvmTransmissible) {
        throw new jpvmException("buffer type mismatch, upktid.");
    }
    if(stride==1) {
      System.arraycopy(objectArray,0,d,0,n);
    }
    else {
View Full Code Here

  }


  public String unpack() throws jpvmException {
    if(dataType != jpvmDataType.jpvmString) {
        throw new jpvmException("buffer type mismatch, upkstring.");
    }
    return new String(charArray);
  }
View Full Code Here

    }
    catch (IOException ioe) {
      System.err.println("I/O exception - "+ioe);
      jpvmDebug.note("jpvmBufferElement, " +
        "send - i/o exception");
      throw new jpvmException("jpvmBufferElement, " +
        "send - i/o exception");
    }
  }
View Full Code Here

      in = new ObjectInputStream(conn.strm);
      try {
        contents = (jpvmBufferElementContents)in.readObject();
      }
      catch (ClassNotFoundException cnf) {
        throw new jpvmException("jpvmBufferElement, " +
        "recv - can't find class "+
        "jpvmBufferElementContents");
      }
    }
    catch (IOException ioe) {
      jpvmDebug.note("jpvmBufferElement, " +
        "recv - i/o exception");
      throw new jpvmException("jpvmBufferElement, " +
        "recv - i/o exception");
    }
  }
View Full Code Here

    addElt(nw);
  }

  public void unpack(int d[], int n, int stride) throws jpvmException {
    if(curr_elt == null)
      throw new jpvmException("buffer empty, upkint.");
    curr_elt.unpack(d,n,stride);
    curr_elt = curr_elt.next;
  }
View Full Code Here

    return d[0];
  }

  public void unpack(byte d[], int n, int stride) throws jpvmException {
    if(curr_elt == null)
      throw new jpvmException("buffer empty, upkbyte.");
    curr_elt.unpack(d,n,stride);
    curr_elt = curr_elt.next;
  }
View Full Code Here

    return d[0];
  }

  public void unpack(char d[], int n, int stride) throws jpvmException {
    if(curr_elt == null)
      throw new jpvmException("buffer empty, upkchar.");
    curr_elt.unpack(d,n,stride);
    curr_elt = curr_elt.next;
  }
View Full Code Here

    return d[0];
  }

  public void unpack(short d[], int n, int stride) throws jpvmException {
    if(curr_elt == null)
      throw new jpvmException("buffer empty, upkshort.");
    curr_elt.unpack(d,n,stride);
    curr_elt = curr_elt.next;
  }
View Full Code Here

    return d[0];
  }

  public void unpack(long d[], int n, int stride) throws jpvmException {
    if(curr_elt == null)
      throw new jpvmException("buffer empty, upklong.");
    curr_elt.unpack(d,n,stride);
    curr_elt = curr_elt.next;
  }
View Full Code Here

TOP

Related Classes of jpvm.jpvmException

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.