public interface APController
Modifier and Type | Method and Description |
---|---|
void |
addAccessPoint(long time,
int gid,
GlobalController g)
Add new access point with gid G
|
void |
addLink(long time,
int gid1,
int gid2)
Add link to network
|
void |
addNode(long time,
int gid)
Add node to network
|
void |
addWarmUpNode(long time)
Add warm up (not real) node
|
int |
APTrafficEstimate(GlobalController g)
Calculate AP traffic estimate
|
void |
controllerRemove(long time,
GlobalController g)
Controller regular AP remove then add action
|
void |
controllerUpdate(long time,
GlobalController g)
Controller regular AP update action
|
int |
getAP(int gid)
get AP for given GID
|
int |
getAPCost(int gid)
get AP for given GID
|
java.util.List<java.lang.Integer> |
getAPList()
Return list of access points
|
int |
getNoAPs()
Return number of access points allocated
|
int |
getScore(long time,
int gid,
GlobalController g)
Return score at given time
|
boolean |
isAP(int gid)
Is node with GID an AP
|
double |
meanAPLife()
Return the mean life of an AP -- this only includes APs which have
died
|
double |
meanAPLifeSoFar(long time)
Return the mean life of an AP -- includes all APs
|
double |
meanNodeLife()
Return the mean life of a node -- this only includes
nodes which have died
|
APInfo |
newAPInfo()
Return APInfo appropriate for this controller
|
void |
removeAccessPoint(long time,
int gid)
Remove access point with gid G
|
void |
removeLink(long time,
int gid1,
int gid2)
Remove link from network
|
void |
removeNode(long time,
int gid)
Remove node and hence possibly AP from network
|
void |
removeWarmUpNode(long startTime,
long endTime)
Remove warm up (not real) node
|
void |
routerUpdate(RouterController r)
Router regular AP update action
|
int getNoAPs()
java.util.List<java.lang.Integer> getAPList()
boolean isAP(int gid)
int getAP(int gid)
int getAPCost(int gid)
void routerUpdate(RouterController r)
void controllerUpdate(long time, GlobalController g)
void controllerRemove(long time, GlobalController g)
int APTrafficEstimate(GlobalController g)
void addAccessPoint(long time, int gid, GlobalController g)
void removeAccessPoint(long time, int gid)
void addNode(long time, int gid)
void addWarmUpNode(long time)
void removeWarmUpNode(long startTime, long endTime)
void removeNode(long time, int gid)
void addLink(long time, int gid1, int gid2)
void removeLink(long time, int gid1, int gid2)
double meanNodeLife()
double meanAPLife()
double meanAPLifeSoFar(long time)
int getScore(long time, int gid, GlobalController g)
APInfo newAPInfo()
User Space Routing 0.10.3