Examples of propagateExistence()


Examples of ptolemy.kernel.ComponentEntity.propagateExistence()

            //  But this may not provide enough information to
            // instantiate the class.
            newEntity.setClassName(className);

            // Propagate.
            Iterator propagatedInstances = newEntity.propagateExistence()
                    .iterator();

            while (propagatedInstances.hasNext()) {
                ComponentEntity propagatedEntity = (ComponentEntity) propagatedInstances
                        .next();
View Full Code Here

Examples of ptolemy.kernel.Port.propagateExistence()

                        // Propagate.
                        // NOTE: Propagated ports will not use newPort(),
                        // but rather will use clone. Classes that override
                        // newPort() to perform special actions will no longer
                        // work, possibly!
                        port.propagateExistence();
                    } else {
                        // Classname is given.
                        Object[] arguments = new Object[2];
                        arguments[0] = container;
                        arguments[1] = portName;
View Full Code Here

Examples of ptolemy.kernel.Port.propagateExistence()

                        arguments[0] = container;
                        arguments[1] = portName;
                        port = (Port) _createInstance(newClass, arguments);

                        // Propagate.
                        port.propagateExistence();
                    }
                }

                _pushContext();
                _current = port;
View Full Code Here

Examples of ptolemy.kernel.util.Location.propagateExistence()

            Location location = new Location(attribute, "_location");
            location.setLocation(locationValue);

            // Since this isn't delegated to the MoML parser,
            // we have to handle propagation here.
            location.propagateExistence();
        } catch (KernelException e) {
            throw new InternalErrorException(e);
        }
    }
View Full Code Here

Examples of ptolemy.kernel.util.Location.propagateExistence()

            } else {
                try {
                    // NOTE: We need the location right away, so we go ahead
                    // and create it and handle the propagation locally.
                    Location location = new Location(entity, "_location");
                    location.propagateExistence();
                    return location;
                } catch (Exception e) {
                    throw new InternalErrorException("Failed to create "
                            + "location, even though one does not exist:"
                            + e.getMessage());
View Full Code Here

Examples of ptolemy.kernel.util.Location.propagateExistence()

                // then the move can be duplicated in the deferrers.
                Location location = new Location(object, "_location");

                // Since this isn't delegated to the MoML parser,
                // we have to handle propagation here.
                location.propagateExistence();

                return location;
            } catch (Exception e) {
                throw new InternalErrorException(object, e, "Failed to create "
                        + "location, even though one does not exist.");
View Full Code Here

Examples of ptolemy.kernel.util.Location.propagateExistence()

                // then the move can be duplicated in the deferrers.
                Location location = new Location(object, "_location");

                // Since this isn't delegated to the MoML parser,
                // we have to handle propagation here.
                location.propagateExistence();

                return location;
            } catch (Exception e) {
                throw new InternalErrorException("Failed to create "
                        + "location, even though one does not exist:"
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.propagateExistence()

                        // Propagate.
                        // NOTE: Propagated relations will not use newRelation(),
                        // but rather will use clone. Classes that rely
                        // on newRelation(), will no longer work, possibly!
                        newRelation.propagateExistence();
                    } else {
                        Object[] arguments = new Object[2];
                        arguments[0] = (CompositeEntity) _current;
                        arguments[1] = relationName;
                        newRelation = _createInstance(newClass, arguments);
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.propagateExistence()

                        arguments[0] = (CompositeEntity) _current;
                        arguments[1] = relationName;
                        newRelation = _createInstance(newClass, arguments);

                        // Propagate.
                        newRelation.propagateExistence();
                    }

                    _namespace = _DEFAULT_NAMESPACE;
                    _current = newRelation;
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.propagateExistence()

                arguments[0] = _current;
                arguments[1] = entityName;

                NamedObj newEntity = _createInstance(newClass, arguments);

                newEntity.propagateExistence();

                _loadIconForClass(className, newEntity);

                _addParamsToParamsToParse(newEntity);
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.