The question may refer to a half-duplex constraint on "real"
single-channel radios that isn't respected by TypedAtomicActors.  It
sounds like your wireless sensor model has both input and output ports
corresponding to the receive and transmit modes of the radio; to
simulate half-duplex comms, you have to cache all of the tokens sent by
each node so you can distinguish the ones sent by other nodes from the
ones sent by the receiver, and delete the latter.

When an actor extending transmits a token from an output port in a
wireless model, the associated WirelessChannel instance decides what
ports will receive the token.  The source for LimitedRangeChannel
inherits from AtomicWirelessChannel, which will not forward the token to
input ports with the same container as the output port that sent the
token.  That container check may be confused by your custom sensor
implementation.  You may want to try wrapping the TypedAtomicActor in a
WirelessCompositeActor with "transmit" and "receive" ports corresponding
to the input and output ports of the TypedAtomicActor.

ALZ

---
Andrew L. Zimdars
Sr. Software Engineer; Modeling, Simulation, and Information Sciences
Advanced Technology Center, Lockheed Martin Space Systems Co.
1111 Lockheed Martin Way, B/153, C/2J4 | Sunnyvale CA  94089
w : 408/742-2111 | [EMAIL PROTECTED]
m : 510/915-0662 | [EMAIL PROTECTED] 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christopher Brooks
Sent: Wednesday, February 21, 2007 3:39 PM
To: "saeed pashazadeh"
Cc: ptolemy-hackers@bennett.EECS.Berkeley.EDU
Subject: Re: How Don't get the sending Message

Hi Saeid
I'm not sure I understand.
The real world is not single threaded.  When a radio sends out a
message,  the receivers all receive the message simultaneously.

(This is not strictly true, since the receivers are different distances
from the the transmitter, so they receive the messages at slightly
different times, but for the sake of argument say that two receivers are
the same distance from the transmitter.)

I'm not that familiar with Visualsense, but you say that you have to
cache all the messages.  Why is that?  Maybe looking at the wireless
Small World demo would help?

_Christopher


--------

    Dear Reader
    
    I have a simple question and are looking for simple answer for it.
    I do simulation with visual sense. I designed TypedAtomicActors as
my 
    sensors. My sensor can send and recieve Messages ( Packets ) using
    input and output ports. I also send message using
LimitedRangeCannel.
    I noticed that when my sensor gives a message from input port and
send a 
    message in fire method from output port, i get sent message from
input.
    My sensors get all messages that it send. In real world in single 
    threading computation we don't have such situation.
    In My model, number of messages are very high and is difficult work
that 
    i cache all messages that i send and then search in fire method when
i 
    get an input message. what you suggest for me?
    
    with best regards
       Saeid pashazadeh
    
    
    
 
------------------------------------------------------------------------
---
   -
    Posted to the ptolemy-hackers mailing list.  Please send
administrative
    mail for this list to:
[EMAIL PROTECTED]
--------

------------------------------------------------------------------------
----
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to