jist.swans.field
Interface FieldInterface

All Superinterfaces:
JistAPI.Proxiable, JistAPI.Timeless
All Known Implementing Classes:
Field

public interface FieldInterface
extends JistAPI.Proxiable

Interface for Field entities.

Since:
SWANS1.0
Version:
$Id: FieldInterface.java,v 1.17 2004/04/06 16:07:47 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Method Summary
 void moveRadio(java.lang.Integer id, Location loc)
          Move radio to different location on field.
 void moveRadioOff(java.lang.Integer id, Location delta)
          Move radio to different relative location on field.
 void transmit(RadioInfo srcInfo, Message msg, long duration)
          Transmit physical-layer message.
 

Method Detail

transmit

void transmit(RadioInfo srcInfo,
              Message msg,
              long duration)
Transmit physical-layer message. Called from radio entity.

Parameters:
srcInfo - source radio information
msg - physical layer packet
duration - transmission duration

moveRadio

void moveRadio(java.lang.Integer id,
               Location loc)
Move radio to different location on field.

Parameters:
id - unique radio identifier
loc - new radio coordinates

moveRadioOff

void moveRadioOff(java.lang.Integer id,
                  Location delta)
Move radio to different relative location on field.

Parameters:
id - unique radio identifier
delta - radio offset coordinates