Locator
ptolemy.domains.wireless.lib.Locator

This is a wireless sensor node that reacts to an input event by transmitting an output with the current location of this node and the time of the input. The output is a record token with type {location={double}, time=double}. The location is an array with two doubles representing the X and Y positions of the sensor. The location of the sensor is determined by the _getLocation() protected method, which in this base class returns the location of the icon in the visual editor, which is determined from the _location attribute of the actor. If there is no _location attribute, then an exception is thrown. Derived classes may override this protected method to specify the location in some other way (or in more dimensions).

Author(s): Philip Baldwin, Xiaojun Liu and Edward A. Lee
Version:$Id: Locator.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (pjb2e)


input
Port that receives a trigger input that causes transmission of location and time information on the <i>output</i> port.
output
Port that transmits the current location and the time of the event on the <i>input</i> port. This has type {location={double}, time=double}, a record token.


inputChannelName
Name of the input channel. This is a string that defaults to "InputChannel".
outputChannelName
Name of the output channel. This is a string that defaults to "OutputChannel".