So, for the moment time is not integrated in CI, but what if the cunning way
round? I want to compare some different configuration scenarios so couldn’t I
do it by taking real time measurements through System.nanoTime()? Of course
those measurements will include the time required from Ptolemy director but
since I am interested in comparative measurements the Ptolemy factor will be
–partially- excluded. Isn’t that correct?

For instance in the first scenario in the attached model packets leave IPInput,
then are pushed to the CMM (stands for configuration management module and is
responsible for installing new protocols to the terminal dynamically) and from
there are pushed to the MobilityProtocol actor (which implements mobility
protocols such as Mobile IP). In the second scenario the CMM is bypassed and
Mobility Protocol packets go directly to the MobilityProtocol actor. Can I
obtain reliable results for comparing average packet processing time between
the two scenarios if I employ packet timestamps through the System.nanoTime()?
Regards

Konstantinos

Quoting "Edward A. Lee" <[EMAIL PROTECTED]>:
> 
> I'm sorry, I apologize... I was thinking of TM, not CI...
> Too many Two-letter acronyms!
> 
> You are right: CI needs a timed version.  I don't believe
> that has been invented yet...  Good problem though, for someone
> to work on...
> 
> Edward
> 
> At 09:00 PM 4/3/2005 +0100, Konstantinos Boukis wrote:
> >What puzzles me is how to simulate the pull interaction in DE. What came 
> >in mind
> >was to employ the fireAt method. Either this or something else I guess…
> Thank
> >you for the guidance, I am going to read DE from volume 2 and come back
> with
> >further questions.
> >
> >Konstantinos
> >
> >Quoting "Edward A. Lee" <[EMAIL PROTECTED]>:
> >
> > >
> > > A while ago Jie Liu and I discussed a fully timed version of CI,
> > > and came to conclusion that the result was, in fact, DE.  Why not use
> DE?
> > >
> > > Edward
> > >
> > > At 01:56 AM 4/3/2005 +0100, Konstantinos Boukis wrote:
> > > >Hello CHESS mates,
> > > >I am a research associate in King's College London and I currently work
> on
> > > a
> > > >project sponsored by Toshiba UK for the development of a reconfigurable
> > > mobile
> > > >terminal focusing on the network layer protocols.
> > > >
> > > >I am currently employing Ptolemy II for evaluating the viability of the
> > > >developed platform, however my concern is whether could I obtain some
> > > >numerical
> > > >results as well. I am using the Component Interaction MoC as Clark
> > > >suggests for
> > > >network protocols but I realised that getCurrentTime returns zero. Is
> > > >there any
> > > >way in which could I integrate time in CI?
> > > >Regards,
> > > >
> > > >Konstantinos
> > > >
> > > >
> > > >
> > > >-----------------------------------------------------------------------
> 
> > -----
> > > >Posted to the ptolemy-hackers mailing list.  Please send administrative
> > > >mail for this list to:
> [EMAIL PROTECTED]
> > >
> > > ------------
> > > Edward A. Lee
> > > Professor, Chair of the EE Division, Associate Chair of EECS
> > > 231 Cory Hall, UC Berkeley, Berkeley, CA 94720
> > > phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
> > > [EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal
> > >
> > >
> >
> >
> >--
> >Konstantinos Boukis
> >[EMAIL PROTECTED]
> >
> 
> ------------
> Edward A. Lee
> Professor, Chair of the EE Division, Associate Chair of EECS
> 231 Cory Hall, UC Berkeley, Berkeley, CA 94720
> phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
> [EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal  
> 
> 


-- 
Konstantinos Boukis
[EMAIL PROTECTED]
 
<?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="example" class="ptolemy.actor.TypedCompositeActor">
    <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="4.0.1">
    </property>
    <property name="Annotation" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="First scenario: &#10;All mobility packets pass through CMM">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[50.0, 65.0]">
        </property>
    </property>
    <property name="Annotation2" class="ptolemy.vergil.kernel.attributes.TextAttribute">
        <property name="text" class="ptolemy.kernel.util.StringAttribute" value="Second scenario: &#10;Mobility packets go directly to &#10;the mobility protocol">
        </property>
        <property name="_location" class="ptolemy.kernel.util.Location" value="[370.0, 75.0]">
        </property>
    </property>
    <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={-4, -4, 1032, 746}, maximized=true}">
    </property>
    <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[817, 628]">
    </property>
    <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
    </property>
    <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{408.5, 314.0}">
    </property>
    <entity name="MobilityProtocol" class="ptolemy.actor.TypedCompositeActor">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[95.0, 165.0]">
        </property>
        <port name="in" class="ptolemy.actor.TypedIOPort">
            <property name="input"/>
            <property name="multiport"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="EAST">
            </property>
        </port>
    </entity>
    <entity name="CMM" class="ptolemy.actor.TypedCompositeActor">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[240.0, 165.0]">
        </property>
        <port name="in" class="ptolemy.actor.TypedIOPort">
            <property name="input"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="SOUTH">
            </property>
        </port>
        <port name="out" class="ptolemy.actor.TypedIOPort">
            <property name="output"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="WEST">
            </property>
        </port>
    </entity>
    <entity name="IPInput" class="ptolemy.actor.TypedCompositeActor">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[240.0, 265.0]">
        </property>
        <port name="out" class="ptolemy.actor.TypedIOPort">
            <property name="output"/>
            <property name="multiport"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="NORTH">
            </property>
        </port>
    </entity>
    <entity name="IPInput2" class="ptolemy.actor.TypedCompositeActor">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[595.0, 280.0]">
        </property>
        <port name="out" class="ptolemy.actor.TypedIOPort">
            <property name="output"/>
            <property name="multiport"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="NORTH">
            </property>
        </port>
    </entity>
    <entity name="CMM2" class="ptolemy.actor.TypedCompositeActor">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[685.0, 170.0]">
        </property>
        <port name="in" class="ptolemy.actor.TypedIOPort">
            <property name="input"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="SOUTH">
            </property>
        </port>
        <port name="out" class="ptolemy.actor.TypedIOPort">
            <property name="output"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="WEST">
            </property>
        </port>
    </entity>
    <entity name="MobilityProtocol2" class="ptolemy.actor.TypedCompositeActor">
        <property name="_location" class="ptolemy.kernel.util.Location" value="[425.0, 175.0]">
        </property>
        <port name="in" class="ptolemy.actor.TypedIOPort">
            <property name="input"/>
            <property name="multiport"/>
            <property name="_type" class="ptolemy.actor.TypeAttribute" value="unknown">
            </property>
            <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="EAST">
            </property>
        </port>
    </entity>
    <relation name="relation" class="ptolemy.actor.TypedIORelation">
    </relation>
    <relation name="relation2" class="ptolemy.actor.TypedIORelation">
    </relation>
    <relation name="relation4" class="ptolemy.actor.TypedIORelation">
    </relation>
    <relation name="relation5" class="ptolemy.actor.TypedIORelation">
    </relation>
    <link port="MobilityProtocol.in" relation="relation2"/>
    <link port="CMM.in" relation="relation"/>
    <link port="CMM.out" relation="relation2"/>
    <link port="IPInput.out" relation="relation"/>
    <link port="IPInput2.out" relation="relation4"/>
    <link port="IPInput2.out" relation="relation5"/>
    <link port="CMM2.in" relation="relation4"/>
    <link port="MobilityProtocol2.in" relation="relation5"/>
</entity>

Reply via email to