Package ptolemy.kernel

Examples of ptolemy.kernel.Port


            List result = new LinkedList();
            CompositeEntity container = (CompositeEntity) getContainer();
            Iterator ports = container.portList().iterator();

            while (ports.hasNext()) {
                Port port = (Port) ports.next();

                if (port instanceof WirelessIOPort) {
                    WirelessIOPort castPort = (WirelessIOPort) port;

                    if (castPort.isInput()) {
View Full Code Here


            while (entities.hasNext()) {
                Entity entity = (Entity) entities.next();
                Iterator ports = entity.portList().iterator();

                while (ports.hasNext()) {
                    Port port = (Port) ports.next();

                    if (port instanceof WirelessIOPort) {
                        WirelessIOPort castPort = (WirelessIOPort) port;

                        if (castPort.isOutput()) {
View Full Code Here

        while (entities.hasNext()) {
            Entity entity = (Entity) entities.next();
            Iterator ports = entity.portList().iterator();

            while (ports.hasNext()) {
                Port port = (Port) ports.next();

                if (port instanceof WirelessIOPort) {
                    WirelessIOPort castPort = (WirelessIOPort) port;

                    if (castPort.isInput()) {
View Full Code Here

            String theChannelName) throws IllegalActionException {
        List result = new LinkedList();
        Iterator ports = container.portList().iterator();

        while (ports.hasNext()) {
            Port port = (Port) ports.next();

            if (port instanceof WirelessIOPort) {
                WirelessIOPort castPort = (WirelessIOPort) port;

                if (castPort.isOutput()) {
View Full Code Here

            String theChannelName) throws IllegalActionException {
        List result = new LinkedList();
        Iterator ports = container.portList().iterator();

        while (ports.hasNext()) {
            Port port = (Port) ports.next();

            if (port instanceof WirelessIOPort) {
                WirelessIOPort castPort = (WirelessIOPort) port;

                if (castPort.isInput()) {
View Full Code Here

        while (entities.hasNext()) {
            Entity entity = (Entity) entities.next();
            Iterator ports = entity.portList().iterator();

            while (ports.hasNext()) {
                Port port = (Port) ports.next();

                if (port instanceof WirelessIOPort) {
                    WirelessIOPort castPort = (WirelessIOPort) port;

                    if (castPort.isOutput()) {
View Full Code Here

    public PortHasNoContainer(Workspace workspace, String name)
            throws IllegalActionException, NameDuplicationException {
        super(workspace, name);

        // This port should be oke
        directoryOrURLPort = new Port(this, "directoryOrURL");

        startTrigger = new Port(this, "startTrigger");
        new Attribute(startTrigger, "_showName");

        startTrigger.setContainer(null);
    }
View Full Code Here

    public PortNameProblem(Workspace workspace, String name)
            throws IllegalActionException, NameDuplicationException {
        super(workspace, name);

        // This port should be oke
        directoryOrURLPort = new Port(this, "directoryOrURL");

        // The name of the port should passed to the constructor should
        // match the name of the variable.  Entity.clone() assumes
        // that the names match.
        // Right:
        // poorlyNamedInput = new Port(this, "poorlyNamedInput");
        // Wrong:
        poorlyNamedInput = new Port(this, "input");
    }
View Full Code Here

        for (Iterator entities = model.deepEntityList().iterator(); entities
                .hasNext();) {
            Entity entity = (Entity) entities.next();

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                Port port = (Port) ports.next();
                Set set = analysis.getNotConstVariables(port);
                Variable variable;
                variable = DFUtilities.getRateVariable(port,
                        "tokenInitProduction");
                _listenToRateVariable(variable, rateVariables);
View Full Code Here

    // Associate the given identifier as referring to some aspect of
    // the given input port.  If the given identifier is already
    // associated with another port, then throw an exception.
    private void _setIdentifierToPort(String name, Port inputPort)
            throws IllegalActionException {
        Port previousPort = (Port) _identifierToPort.get(name);

        if ((previousPort != null) && (previousPort != inputPort)) {
            throw new IllegalActionException("Name conflict in finite state"
                    + " machine.  The identifier \"" + name
                    + "\" is associated with the port " + previousPort
View Full Code Here

TOP

Related Classes of ptolemy.kernel.Port

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.