Package ptolemy.data

Examples of ptolemy.data.FunctionToken.apply()


        while (ports.hasNext()) {
            TypedIOPort port = (TypedIOPort) ports.next();
            arguments[i++] = port.get(0);
        }

        Token t = functionValue.apply(arguments);
        output.broadcast(t);
    }

    /** Return true if the actor either of its input port has token.
     *  @exception IllegalActionException Not thrown in this base class.
View Full Code Here


            }

            i++;
        }

        Token result = functionValue.apply(arguments);

        if (_outputRate == -1) {
            output.broadcast(result);
        } else {
            // FIXME: Check size.
View Full Code Here

                    throw new IllegalActionException("Wrong number of "
                            + "arguments when applying function "
                            + value.toString());
                }

                result = function.apply(argValues);
            } else {
                // FIXME: It might be the a parameter is
                // shadowing a built-in function, in which
                // case, thrown an exception seems bogus.
View Full Code Here

                                + "arguments when applying function "
                                + token.toString());
                    }

                    if (functionToken.getFunction() instanceof LoopFunction) {
                        _evaluatedChildToken = functionToken.apply(new Token[] {
                                new ObjectToken(node.jjtGetChild(1)) });
                        return;
                    }
                }
                super.visitFunctionApplicationNode(node);
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.