Examples of Const


Examples of org.jacoco.examples.expressions.Const

    if (accept('(')) {
      e = term();
      expect(')');
    } else {
      expect(TT_NUMBER);
      e = new Const(tokenizer.nval);
    }
    return e;
  }
View Full Code Here

Examples of org.jacoco.examples.expressions.Const

    if (accept('(')) {
      e = term();
      expect(')');
    } else {
      expect(TT_NUMBER);
      e = new Const(tokenizer.nval);
    }
    return e;
  }
View Full Code Here

Examples of org.jacoco.examples.expressions.Const

    if (accept('(')) {
      e = term();
      expect(')');
    } else {
      expect(TT_NUMBER);
      e = new Const(tokenizer.nval);
    }
    return e;
  }
View Full Code Here

Examples of org.jacoco.examples.expressions.Const

    if (accept('(')) {
      e = term();
      expect(')');
    } else {
      expect(TT_NUMBER);
      e = new Const(tokenizer.nval);
    }
    return e;
  }
View Full Code Here

Examples of ptolemy.actor.lib.Const

            _parser = new MoMLParser();
            MoMLParser.setMoMLFilters(BackwardCompatibility.allFilters());

            // When no model applied, output the default value.
            if (((BooleanToken) connectPorts.getToken()).booleanValue()) {
                Const constActor = new Const(this, "Const");
                constActor.value.setExpression(defaultValue.getToken()
                        .toString());
                connect(input, constActor.trigger);
                connect(constActor.output, output);
            } //otherwise, do nothing.
View Full Code Here

Examples of ptolemy.actor.lib.Const

        _fBack2 = new ZenoDelay(toplevel, "LowerFeedBack");

        _rcvr1 = new ListenSink(toplevel, "UpperRcvr");
        _rcvr2 = new ListenSink(toplevel, "LowerRcvr");

        _upperTime = new Const(toplevel, "upperTime");
        _upperPlotter = new TimedPlotter(toplevel, "upperPlotter");

        _lowerTime = new Const(toplevel, "lowerTime");
        _lowerPlotter = new TimedPlotter(toplevel, "lowerPlotter");

        //_fBack1.delay.setToken(new DoubleToken(4.5));
        //_fBack2.delay.setToken(new DoubleToken(4.5));
        _fBack1.delay.setToken(new DoubleToken(1.0));
View Full Code Here

Examples of ptolemy.actor.lib.Const

        SDFDirector director = new SDFDirector();
        _top.setDirector(director);
        _top.setManager(_manager);

        _top.addChangeListener(this);
        _const = new Const(_top, "const");
        _rec = new Recorder(_top, "rec");
        _top.connect(_const.output, _rec.input);
    }
View Full Code Here

Examples of ptolemy.actor.lib.Const

                "CTTopLevelDirector");

        //StreamListener dbl = new StreamListener();
        //topdir.addDebugListener(dbl);
        // a const source
        Const source = new Const(this, "Const");
        source.value.setToken(new DoubleToken(1.0));

        // the plot
        TimedPlotter responsePlot = new TimedPlotter(this, "plot");
        Plot newPlot = new Plot();
View Full Code Here

Examples of ptolemy.actor.lib.Const

        lambda = new Parameter(this, "lambda", new DoubleToken(25.0));
        sigma = new Parameter(this, "sigma", new DoubleToken(10.0));
        b = new Parameter(this, "b", new DoubleToken(2.0));

        // Create the actors.
        Const LAMBDA = new Const(this, "LAMBDA");
        LAMBDA.value.setExpression("lambda");

        Scale SIGMA = new Scale(this, "SIGMA");
        SIGMA.factor.setExpression("sigma");
View Full Code Here

Examples of vash.operation.Const

    // Total error should be limited
    //System.out.format("%s-TotalError: %d, per-pix: %f%n", test, error, (double)error / (opt.getWidth() * opt.getHeight()));
  }

  private OperationNode c1P() {
    return new Const(1);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.