Examples of FSMDirector


Examples of ptolemy.domains.fsm.kernel.FSMDirector

                        Class newDirectorClass = Class.forName(directorClass
                                .stringValue());
                        Constructor newDirectorConstructor = newDirectorClass
                                .getConstructor(new Class[] {
                                        CompositeEntity.class, String.class });
                        FSMDirector newDirector = (FSMDirector) newDirectorConstructor
                                .newInstance(new Object[] { ModalModel.this,
                                        uniqueName("_Director") });

                        // The director should not be persistent.
                        newDirector.setPersistent(false);
                        newDirector.controllerName.setExpression("_Controller");

                        if ((director != null)
                                && (director.getContainer() == ModalModel.this)) {
                            // Delete the old director.
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.FSMDirector

        // (because the director class matches the default).
        // Issuing a change request during construction is
        // problematic because it causes the Vergil library
        // to close when you first open a sublibrary containing
        // an instance of ModalModel.
        FSMDirector defaultFSMDirector = new FSMDirector(this, "_Director");
        defaultFSMDirector.controllerName.setExpression("_Controller");

        // NOTE: If there is a container for this ModalModel, and it
        // has a director, then we get the default value from that
        // director, and also get a list of suggested values.
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.FSMDirector

    public void inlineDirector(CompositeActor model, SootClass modelClass,
            String phaseName, Map options) throws IllegalActionException {
        InlinePortTransformer.setPortInliner(model, new HSPortInliner(
                modelClass, model, options));

        FSMDirector director = (FSMDirector) model.getDirector();
        FSMActor controller;

        try {
            controller = director.getController();
        } catch (Exception ex) {
            throw new RuntimeException(ex.getMessage());
        }

        System.out.println("Inlining director for " + model.getFullName());
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.