hi Hackers,

 

Here is the second model, “OldMICversion1.xml”. Thanks!

 

Chuck Lutz

Lockheed Martin

Systems of Systems - Modeling and Operations Analysis

BMC4I Modeling and Simulation

Moorestown, NJ

(856)638-7234 (office)

[EMAIL PROTECTED]

 

“Everyone spoke of an information overload, but what there

was in fact was a non-information overload.”

– Richard Saul Wurman

 

<?xml version="1.0" standalone="no"?>
<!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
    "http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd";>
<entity name="OldMICversion1" class="ptolemy.actor.TypedCompositeActor">
    <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="5.0.1">
    </property>
    <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={3, 4, 661, 459}, maximized=false}">
    </property>
    <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[446, 350]">
    </property>
    <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
    </property>
    <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{224.7296401515152, 166.9896622474748}">
    </property>
    <property name="Annotation" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="[old] Note: upon run, it generates extra&#10;relations and corresponding channels.&#10;These vanish when the run is over.&#10;Weird!">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[160.0, 0.0]">
        </property>
    </property>
    <property name="Annotation2" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="textSize" class="ptolemy.data.expr.Parameter" value="10">
        </property>
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="[old] State, 18 April 06, 4:25 PM:&#10;For several hours I was having some odd error with tokens not&#10;getting produced; the MIC was set to three instances, and they&#10;each would send out four tokens: 2, 3, 0, 2, and then I would&#10;get the error (something about expecting 1 token but 0 being&#10;available). I fiddled with port names to make then unique in&#10;the two scopes of interest (MIC and the encapsulated MM), but&#10;I'm not sure if that is what &quot;fixed&quot; things. This is b/c when&#10;I made the port names the same again, I didn't get the issue!">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[5.0, 175.0]">
        </property>
    </property>
    <property name="LanesAvailable" class="ptolemy.data.expr.Parameter" value="3">
        <property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
        </property>
        <property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
            <property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
            </property>
        </property>
        <property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
            <configure>
      <svg>
        <text x="20" style="font-size:14; font-family:SansSerif; fill:blue" y="20">-P-</text>
      </svg>
    </configure>
        </property>
        <property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="{25, 150}">
        </property>
    </property>
    <property name="CT Director" class="ptolemy.domains.ct.kernel.CTMixedSignalDirector">
        <property name="stopTime" class="ptolemy.data.expr.Parameter" value="0.1">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[75.0, 30.0]">
        </property>
    </property>
    <entity name="MultiInstanceComposite" class="ptolemy.actor.lib.hoc.MultiInstanceComposite">
        <property name="nInstances" class="ptolemy.data.expr.Parameter" value="3">
        </property>
        <doc>Creates multiple instances of itself</doc>
        <property name="_location" class="ptolemy.kernel.util.Location" value="{50.0, 100.0}">
        </property>
        <property name="CT Director" class="ptolemy.domains.ct.kernel.CTMixedSignalDirector">
            <property name="_location" class="ptolemy.kernel.util.Location" value="[-15.0, -5.0]">
            </property>
        </property>
        <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={232, 257, 815, 509}, maximized=false}">
        </property>
        <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[600, 400]">
        </property>
        <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
        </property>
        <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{156.9968434343434, 79.6234217171717}">
        </property>
        <port name="MIC_out" class="ptolemy.actor.TypedIOPort">
            <property name="output"/>
            <property name="_location" class="ptolemy.kernel.util.Location" value="[325.0, 70.0]">
            </property>
        </port>
        <entity name="ContinuousClock" class="ptolemy.domains.ct.lib.ContinuousClock">
            <property name="_location" class="ptolemy.kernel.util.Location" value="[-70.0, 70.0]">
            </property>
        </entity>
        <entity name="ModalModel" class="ptolemy.domains.fsm.modal.ModalModel">
            <property name="_tableauFactory" class="ptolemy.vergil.fsm.modal.ModalTableauFactory">
            </property>
            <property name="_location" class="ptolemy.kernel.util.Location" value="[75.0, 70.0]">
            </property>
            <port name="LanesAvailable" class="ptolemy.domains.fsm.modal.ModalPort">
                <property name="output"/>
                <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
                </property>
            </port>
            <port name="GroceriesAmt" class="ptolemy.domains.fsm.modal.ModalPort">
                <property name="output"/>
                <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
                </property>
            </port>
            <port name="trigger" class="ptolemy.domains.fsm.modal.ModalPort">
                <property name="input"/>
                <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
                </property>
            </port>
            <entity name="_Controller" class="ptolemy.domains.fsm.modal.ModalController">
                <property name="initialStateName" class="ptolemy.kernel.util.StringAttribute" value="state">
                </property>
                <property name="annotation" class="ptolemy.kernel.util.Attribute">
                    <property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
                    </property>
                    <property name="_iconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
                        <configure><svg><text x="20" y="20" style="font-size:14; font-family:SansSerif; fill:blue">Create a state machine here (and ports, if needed) and
create refinements for the states.  Create transitions
by holding the control key and dragging from one state
to another. Then delete this annotation.</text>
</svg></configure>
                    </property>
                    <property name="_location" class="ptolemy.kernel.util.Location" value="120.0, 5.0">
                    </property>
                    <property name="_controllerFactory" class="ptolemy.vergil.basic.NodeControllerFactory">
                    </property>
                    <property name="_editorFactory" class="ptolemy.vergil.toolbox.AnnotationEditorFactory">
                    </property>
                </property>
                <property name="_library" class="ptolemy.moml.LibraryAttribute">
                    <configure>
        <entity name="state library" class="ptolemy.kernel.CompositeEntity"><input source="ptolemy/configs/basicUtilities.xml"></input><entity name="state" class="ptolemy.domains.fsm.kernel.State"><property name="_centerName" class="ptolemy.kernel.util.Attribute"></property><property name="_controllerFactory" class="ptolemy.vergil.fsm.modal.HierarchicalStateControllerFactory"></property></entity></entity>
      </configure>
                </property>
                <port name="LanesAvailable" class="ptolemy.domains.fsm.modal.RefinementPort">
                    <property name="input"/>
                    <property name="output"/>
                    <property name="_location" class="ptolemy.kernel.util.Location" value="[30.0, 75.0]">
                    </property>
                    <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
                    </property>
                </port>
                <port name="GroceriesAmt" class="ptolemy.domains.fsm.modal.RefinementPort">
                    <property name="input"/>
                    <property name="output"/>
                    <property name="_location" class="ptolemy.kernel.util.Location" value="[30.0, 35.0]">
                    </property>
                </port>
                <port name="trigger" class="ptolemy.domains.fsm.modal.RefinementPort">
                    <property name="input"/>
                    <property name="_location" class="ptolemy.kernel.util.Location" value="[30.0, 120.0]">
                    </property>
                </port>
                <entity name="state" class="ptolemy.domains.fsm.kernel.State">
                    <property name="_controllerFactory" class="ptolemy.vergil.fsm.modal.HierarchicalStateControllerFactory">
                    </property>
                    <property name="_location" class="ptolemy.kernel.util.Location" value="{140.0, 220.0}">
                    </property>
                </entity>
                <entity name="state2" class="ptolemy.domains.fsm.kernel.State">
                    <property name="_controllerFactory" class="ptolemy.vergil.fsm.modal.HierarchicalStateControllerFactory">
                    </property>
                    <property name="_location" class="ptolemy.kernel.util.Location" value="[330.0, 220.0]">
                    </property>
                </entity>
                <relation name="relation" class="ptolemy.domains.fsm.kernel.Transition">
                    <property name="guardExpression" class="ptolemy.kernel.util.StringAttribute" value="trigger==1">
                    </property>
                    <property name="outputActions" class="ptolemy.domains.fsm.kernel.OutputActionsAttribute" value="GroceriesAmt = &quot;GA1&quot;; LanesAvailable = &quot;LA1&quot;">
                    </property>
                    <property name="exitAngle" class="ptolemy.data.expr.Parameter" value="0.6283185307179586">
                    </property>
                    <property name="gamma" class="ptolemy.data.expr.Parameter" value="0.09034688144555487">
                    </property>
                    <property name="reset" class="ptolemy.data.expr.Parameter" value="false">
                    </property>
                    <property name="preemptive" class="ptolemy.data.expr.Parameter" value="false">
                    </property>
                    <property name="nondeterministic" class="ptolemy.data.expr.Parameter" value="false">
                    </property>
                </relation>
                <relation name="relation2" class="ptolemy.domains.fsm.kernel.Transition">
                    <property name="guardExpression" class="ptolemy.kernel.util.StringAttribute" value="trigger==1">
                    </property>
                    <property name="outputActions" class="ptolemy.domains.fsm.kernel.OutputActionsAttribute" value="GroceriesAmt = &quot;GA2&quot;; LanesAvailable = &quot;LA2&quot;">
                    </property>
                    <property name="exitAngle" class="ptolemy.data.expr.Parameter" value="0.6283185307179586">
                    </property>
                    <property name="gamma" class="ptolemy.data.expr.Parameter" value="-3.0891177600430004">
                    </property>
                    <property name="reset" class="ptolemy.data.expr.Parameter" value="false">
                    </property>
                    <property name="preemptive" class="ptolemy.data.expr.Parameter" value="false">
                    </property>
                    <property name="nondeterministic" class="ptolemy.data.expr.Parameter" value="false">
                    </property>
                </relation>
                <link port="state.incomingPort" relation="relation2"/>
                <link port="state.outgoingPort" relation="relation"/>
                <link port="state2.incomingPort" relation="relation"/>
                <link port="state2.outgoingPort" relation="relation2"/>
            </entity>
            <relation name="LanesAvailableRelation" class="ptolemy.actor.TypedIORelation">
            </relation>
            <relation name="GroceriesAmtRelation" class="ptolemy.actor.TypedIORelation">
            </relation>
            <relation name="triggerRelation" class="ptolemy.actor.TypedIORelation">
            </relation>
            <link port="LanesAvailable" relation="LanesAvailableRelation"/>
            <link port="GroceriesAmt" relation="GroceriesAmtRelation"/>
            <link port="trigger" relation="triggerRelation"/>
            <link port="_Controller.LanesAvailable" relation="LanesAvailableRelation"/>
            <link port="_Controller.GroceriesAmt" relation="GroceriesAmtRelation"/>
            <link port="_Controller.trigger" relation="triggerRelation"/>
        </entity>
        <relation name="relation" class="ptolemy.actor.TypedIORelation">
            <vertex name="vertex1" value="[300.0, 70.0]">
            </vertex>
        </relation>
        <relation name="relation2" class="ptolemy.actor.TypedIORelation">
        </relation>
        <link port="MIC_out" relation="relation"/>
        <link port="ContinuousClock.output" relation="relation2"/>
        <link port="ModalModel.LanesAvailable" relation="relation"/>
        <link port="ModalModel.trigger" relation="relation2"/>
    </entity>
    <entity name="MonitorValue" class="ptolemy.actor.lib.MonitorValue">
        <doc>Monitor and display values</doc>
        <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="20">
        </property>
        <property name="_icon" class="ptolemy.vergil.icon.UpdatedValueIcon">
            <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="value">
            </property>
            <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="displayWidth">
            </property>
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[225.0, 105.0]">
        </property>
    </entity>
    <relation name="relation" class="ptolemy.actor.TypedIORelation">
    </relation>
    <link port="MultiInstanceComposite.MIC_out" relation="relation"/>
    <link port="MonitorValue.input" relation="relation"/>
</entity>

Reply via email to