|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.radio.routing.RoutingPolicy
public class RoutingPolicy
An object that describes the basic routing policy
| Field Summary | |
|---|---|
static int |
ALWAYS
The node routes all packets and disables deepSleep |
static int |
ENDNODE
The policy is a routing consumer only |
static int |
IFAWAKE
we route all packets, but only if we are awake |
static int |
SHAREDBASESTATION
we are a shared basestation - route always, but also pass broadcasts without decrementing hopcount |
static int |
UNDEFINED
The policy is a routing consumer only |
| Constructor Summary | |
|---|---|
RoutingPolicy(int state)
create a routing policy object |
|
| Method Summary | |
|---|---|
boolean |
equals(int val)
compare this policy to a numerical equivilent |
boolean |
equals(RoutingPolicy rp)
compare two policy objects |
String |
toString()
create a string representation of this routing policy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED
public static final int ENDNODE
public static final int ALWAYS
public static final int IFAWAKE
public static final int SHAREDBASESTATION
| Constructor Detail |
|---|
public RoutingPolicy(int state)
state - the type of routing this policy object represents| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean equals(int val)
val - a numerical equivilent for a policy
public boolean equals(RoutingPolicy rp)
rp - the policy to compare this with
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||