Sim.Routing.GPSR.Header
Interface Base

All Superinterfaces:
ProtocolFrame
All Known Implementing Classes:
Broadcast, Standard

public interface Base
extends ProtocolFrame

Base header that all GPSR packets should contain. To lessen broadcasting every packet that is seen needs to contain location information from the originator to update location tables, instead of directly relying on broadcasting.


Method Summary
 int getFromAddress()
          All headers should have a way to get the senders address.
 Location getFromLocation()
          All headers should also have a way to get the senders location.
 
Methods inherited from interface Sim.ProtocolFrame
getSize
 

Method Detail

getFromAddress

int getFromAddress()
All headers should have a way to get the senders address.

Returns:
integer address of the originator node.

getFromLocation

Location getFromLocation()
All headers should also have a way to get the senders location.

Returns:
location object of the originator node.