Package ptolemy.data

Examples of ptolemy.data.ScalarToken.absolute()


     */
    public void fire() throws IllegalActionException {
        super.fire();
        if (input.hasToken(0)) {
            ScalarToken in = (ScalarToken) input.get(0);
            output.send(0, in.absolute());
        }
    }

    /** Return the following type constraints: If the input type is Complex,
     *  the output type is no less than Double, otherwise, the output type
View Full Code Here


                if (in.getType().equals(BaseType.COMPLEX)) {
                    // If we have a complex, we use the absolute value
                    // for comparison, but save output the initial input
                    // for output at the end.
                    inMagnitude = in.absolute();
                } else {
                    inMagnitude = in;
                }

                if (result == null) {
View Full Code Here

                if (in.getType().equals(BaseType.COMPLEX)) {
                    // If we have a complex, we use the absolute value
                    // for comparison, but save output the initial input
                    // for output at the end.
                    inMagnitude = in.absolute();
                } else {
                    inMagnitude = in;
                }

                if (result == null) {
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.