Package ptolemy.graph

Examples of ptolemy.graph.InequalityTerm


         *  element array containing the inequality term representing
         *  the type of the port; otherwise, return an empty array.
         *  @return An array of InequalityTerm.
         */
        public InequalityTerm[] getVariables() {
            InequalityTerm portTerm = input.getTypeTerm();

            if (portTerm.isSettable()) {
                InequalityTerm[] variable = new InequalityTerm[1];
                variable[0] = portTerm;
                return variable;
            }

View Full Code Here


                    cloneConstraintIterator = cloneConstraints.iterator();
                    while (cloneConstraintIterator.hasNext()) {
                        Inequality constraint = (Inequality) cloneConstraintIterator
                                .next();
                        InequalityTerm greaterTerm = constraint
                                .getGreaterTerm();
                        InequalityTerm lesserTerm = constraint.getLesserTerm();

                        Object greaterAssociatedObject = greaterTerm
                                .getAssociatedObject();
                        Object lesserAssociatedObject = lesserTerm
                                .getAssociatedObject();
                        if (greaterAssociatedObject instanceof NamedObj
                                && lesserAssociatedObject instanceof NamedObj) {
                            // FIXME: what about non-NamedObjs?
                            NamedObj greaterNamedObj = (NamedObj) greaterAssociatedObject;
View Full Code Here

            throws IllegalActionException {
        Iterator scopes = _scopeList.iterator();

        while (scopes.hasNext()) {
            ParserScope scope = (ParserScope) scopes.next();
            InequalityTerm result = scope.getTypeTerm(name);

            if (result != null) {
                return result;
            }
        }
View Full Code Here

        public InequalityTerm[] getVariables() {
            Iterator inputPorts = inputPortList().iterator();
            LinkedList result = new LinkedList();
            while (inputPorts.hasNext()) {
                TypedIOPort port = (TypedIOPort) inputPorts.next();
                InequalityTerm term = port.getTypeTerm();
                if (term.isSettable()) {
                    result.add(term);
                }
            }
            InequalityTerm[] variables = new InequalityTerm[result.size()];
            Iterator results = result.iterator();
View Full Code Here

TOP

Related Classes of ptolemy.graph.InequalityTerm

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.