<?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="DECGPiSquare" class="ptolemy.actor.TypedCompositeActor">
    <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="10.0.beta">
    </property>
    <property name="CCodeGenerator" class="ptolemy.cg.kernel.generic.program.procedural.c.CCodeGenerator">
        <property name="codeDirectory" class="ptolemy.data.expr.FileParameter" value="$HOME/cg/DECGPiSquare">
        </property>
        <property name="generateInSubdirectory" class="ptolemy.data.expr.Parameter" value="true">
        </property>
        <property name="inline" class="ptolemy.data.expr.Parameter" value="false">
        </property>
        <property name="run" class="ptolemy.data.expr.Parameter" value="true">
        </property>
        <property name="verbosity" class="ptolemy.data.expr.Parameter" value="10">
        </property>
        <property name="compile" class="ptolemy.data.expr.Parameter" value="true">
        </property>
        <property name="compileCommand" class="ptolemy.data.expr.StringParameter" value="make -f @modelName@.mk">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[235.0, 45.0]">
        </property>
    </property>
    <property name="DE Director" class="ptolemy.domains.de.kernel.DEDirector">
        <property name="startTime" class="ptolemy.data.expr.Parameter" value="0.0">
        </property>
        <property name="stopTime" class="ptolemy.data.expr.Parameter" value="100.0">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[80.0, 45.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </property>
    <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={431, 254, 1249, 716}, maximized=false}">
    </property>
    <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[1015, 606]">
    </property>
    <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
    </property>
    <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{497.5, 293.0}">
    </property>
    <property name="AnnotationUpdated" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="_hideName" class="ptolemy.data.expr.SingletonParameter" value="true">
        </property>
        <property name="_hideAllParameters" class="ptolemy.data.expr.Parameter" value="true">
        </property>
        <property name="textSize" class="ptolemy.data.expr.Parameter" value="14">
        </property>
        <property name="textColor" class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
        </property>
        <property name="fontFamily" class="ptolemy.data.expr.StringParameter" value="SansSerif">
        </property>
        <property name="bold" class="ptolemy.data.expr.Parameter" value="false">
        </property>
        <property name="italic" class="ptolemy.data.expr.Parameter" value="false">
        </property>
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="This model illustrates how C Code Generation works with a DE Director.&#10;In this model, we show a mathematical computation.&#10;&#10;To run the Code Generation double-click  on the CCodeGeneration Actor">
            <property name="_style" class="ptolemy.actor.gui.style.TextStyle">
                <property name="height" class="ptolemy.data.expr.Parameter" value="20">
                </property>
                <property name="width" class="ptolemy.data.expr.Parameter" value="80">
                </property>
            </property>
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[390.0, 35.0]">
        </property>
    </property>
    <property name="Annotation" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="This model computes pi&lt;sup&gt;2&lt;/sup&gt;.&#10;We use the Euler formula for the Riemman zeta function : zeta(2) = Sum(1, 1/2&lt;sup&gt;2&lt;/sup&gt;, ..., 1/n&lt;sup&gt;2&lt;/sup&gt;) = pi&lt;sup&gt;2&lt;/sup&gt;/6">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[180.0, 285.0]">
        </property>
    </property>
    <property name="AnnotationUpdated3" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="_hideName" class="ptolemy.data.expr.SingletonParameter" value="true">
        </property>
        <property name="_hideAllParameters" class="ptolemy.data.expr.Parameter" value="true">
        </property>
        <property name="textSize" class="ptolemy.data.expr.Parameter" value="14">
        </property>
        <property name="textColor" class="ptolemy.actor.gui.ColorAttribute" value="{0.4, 0.4, 0.4, 1.0}">
        </property>
        <property name="fontFamily" class="ptolemy.data.expr.StringParameter" value="SansSerif">
        </property>
        <property name="bold" class="ptolemy.data.expr.Parameter" value="false">
        </property>
        <property name="italic" class="ptolemy.data.expr.Parameter" value="false">
        </property>
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="Author: William Lucas">
            <property name="_style" class="ptolemy.actor.gui.style.TextStyle">
                <property name="height" class="ptolemy.data.expr.Parameter" value="20">
                </property>
                <property name="width" class="ptolemy.data.expr.Parameter" value="80">
                </property>
            </property>
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="{89.0, 370.0}">
        </property>
    </property>
    <entity name="Display" class="ptolemy.actor.lib.gui.Display">
        <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={1017, 726, 522, 205}, maximized=false}">
        </property>
        <property name="_paneSize" class="ptolemy.actor.gui.SizeAttribute" value="[522, 182]">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[785.0, 195.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </entity>
    <entity name="Ramp" class="ptolemy.actor.lib.Ramp">
        <property name="init" class="ptolemy.actor.parameters.PortParameter" value="1">
        </property>
        <doc>Create a sequence of tokens with increasing value</doc>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[290.0, 225.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </entity>
    <entity name="MultiplyDivide" class="ptolemy.actor.lib.MultiplyDivide">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[565.0, 195.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </entity>
    <entity name="Const" class="ptolemy.actor.lib.Const">
        <property name="value" class="ptolemy.data.expr.Parameter" value="6.0">
        </property>
        <doc>Create a constant sequence.</doc>
        <property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
            <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="value">
            </property>
            <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
            </property>
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[280.0, 165.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </entity>
    <entity name="Accumulator" class="ptolemy.actor.lib.Accumulator">
        <property name="lowerBound" class="ptolemy.data.expr.Parameter" value="0">
        </property>
        <property name="upperBound" class="ptolemy.data.expr.Parameter" value="1000">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[675.0, 195.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </entity>
    <entity name="DiscreteClock" class="ptolemy.actor.lib.DiscreteClock">
        <property name="period" class="ptolemy.actor.parameters.PortParameter" value="0.1">
        </property>
        <doc>Create periodic timed events.</doc>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[95.0, 185.0]">
        </property>
        <property name="DecoratorAttributesFor_CCodeGenerator" class="ptolemy.kernel.util.DecoratorAttributes">
            <property name="decoratorName" class="ptolemy.kernel.util.StringAttribute" value="CCodeGenerator">
            </property>
        </property>
    </entity>
    <relation name="relation2" class="ptolemy.actor.TypedIORelation">
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <relation name="relation3" class="ptolemy.actor.TypedIORelation">
        <vertex name="vertex1" value="[435.0, 200.0]">
        </vertex>
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <relation name="relation" class="ptolemy.actor.TypedIORelation">
        <vertex name="vertex1" value="[435.0, 225.0]">
        </vertex>
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <relation name="relation4" class="ptolemy.actor.TypedIORelation">
        <vertex name="vertex1" value="[370.0, 225.0]">
        </vertex>
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <relation name="relation5" class="ptolemy.actor.TypedIORelation">
        <vertex name="vertex1" value="[160.0, 185.0]">
        </vertex>
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <relation name="relation6" class="ptolemy.actor.TypedIORelation">
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <relation name="relation7" class="ptolemy.actor.TypedIORelation">
        <property name="color" class="ptolemy.actor.gui.ColorAttribute">
        </property>
    </relation>
    <link port="Display.input" relation="relation7"/>
    <link port="Ramp.output" relation="relation4"/>
    <link port="Ramp.trigger" relation="relation5"/>
    <link port="MultiplyDivide.multiply" relation="relation2"/>
    <link port="MultiplyDivide.divide" relation="relation3"/>
    <link port="MultiplyDivide.divide" relation="relation"/>
    <link port="MultiplyDivide.output" relation="relation6"/>
    <link port="Const.output" relation="relation2"/>
    <link port="Const.trigger" relation="relation5"/>
    <link port="Accumulator.input" relation="relation6"/>
    <link port="Accumulator.output" relation="relation7"/>
    <link port="DiscreteClock.output" relation="relation5"/>
    <link relation1="relation3" relation2="relation4"/>
    <link relation1="relation" relation2="relation4"/>
</entity>
