Package com.cburch.logisim.analyze.model

Examples of com.cburch.logisim.analyze.model.VariableList


    }
  }
 
  private String header(int start, int stop) {
    if (start >= stop) return "";
    VariableList inputs = model.getInputs();
    StringBuilder ret = new StringBuilder(inputs.get(start));
    for (int i = start + 1; i < stop; i++) {
      ret.append(", ");
      ret.append(inputs.get(i));
    }
    return ret.toString();
  }
View Full Code Here


      if (defaultCircuit != null) {
        name.setText(defaultCircuit.getName());
        name.selectAll();
      }
     
      VariableList outputs = model.getOutputs();
      boolean enableNands = true;
      for (int i = 0; i < outputs.size(); i++) {
        String output = outputs.get(i);
        Expression expr = model.getOutputExpressions().getExpression(output);
        if (expr != null && expr.containsXor()) { enableNands = false; break; }
      }
      nands.setEnabled(enableNands);
     
View Full Code Here

  //
  // computeInputData
  //
  private static InputData computeInputData(AnalyzerModel model) {
    InputData ret = new InputData();
    VariableList inputs = model.getInputs();
    int spineX = 60;
    ret.names = new String[inputs.size()];
    for (int i = 0; i < inputs.size(); i++) {
      String name = inputs.get(i);
      ret.names[i] = name;
      ret.inputs.put(name, new SingleInput(spineX));
      spineX += 20;
    }
    ret.startX = spineX;
View Full Code Here

            if (defaultCircuit != null) {
                name.setText(defaultCircuit.getName());
                name.selectAll();
            }

            VariableList outputs = model.getOutputs();
            boolean enableNands = true;
            for (int i = 0; i < outputs.size(); i++) {
                String output = outputs.get(i);
                Expression expr = model.getOutputExpressions().getExpression(output);
                if (expr != null && expr.containsXor()) {
                    { enableNands = false;
                }
break; }
View Full Code Here

    private String header(int start, int stop) {
        if (start >= stop) {
            return "";
        }

        VariableList inputs = model.getInputs();
        StringBuilder ret = new StringBuilder(inputs.get(start));
        for (int i = start + 1; i < stop; i++) {
            ret.append(", ");
            ret.append(inputs.get(i));
        }
        return ret.toString();
    }
View Full Code Here

    //
    // computeInputData
    //
    private static InputData computeInputData(AnalyzerModel model) {
        InputData ret = new InputData();
        VariableList inputs = model.getInputs();
        int spineX = 60;
        ret.names = new String[inputs.size()];
        for (int i = 0; i < inputs.size(); i++) {
            String name = inputs.get(i);
            ret.names[i] = name;
            ret.inputs.put(name, new SingleInput(spineX));
            spineX += 20;
        }
        ret.startX = spineX;
View Full Code Here

TOP

Related Classes of com.cburch.logisim.analyze.model.VariableList

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.