Package jmt.engine.random

Examples of jmt.engine.random.EmpiricalEntry


    //@author Stefano Omini
    nodeNames = new String[entries.length];
    //end NEW

    for (int i = 0; i < entries.length; i++) {
      EmpiricalEntry entry = entries[i];
      if (entry.getValue() instanceof String) {
        //gets the value contained in the empirical entry (in this case this
        //object is the name of the output node)
        String nodeName = (String) entry.getValue();

        //sets the name of the node; the corresponding NetNode object will be found later
        nodeNames[i] = nodeName;

        //sets the corresponding routing probability
        probabilities[i] = entry.getProbability();
      } else {
        throw new LoadException("Name of the node is not a String");
      }
    }
View Full Code Here

TOP

Related Classes of jmt.engine.random.EmpiricalEntry

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.