|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.item.router.utilities.ActionPlaneSessions
public class ActionPlaneSessions
The responsibility of this class is to make a list of ServiceSession
that the user has set a target bit rate for. These are the
ServiceSession
objects that AP should care about. Every time
ServiceSessionBank
is updated it needs to run through the elements.
It then selects the ones that the router should perform action on/for.
This list should then be communicated to the Thread actually responsible
for continuous communication with the AP layer.
Field Summary | |
---|---|
private ActionReasoner |
actionReasoner
The reasoner to call when the list of sessions is changed |
private java.util.List<ServiceSession> |
markedSessions
The list of ServiceSession objects relevant to AP |
Constructor Summary | |
---|---|
ActionPlaneSessions(ActionReasoner actionReasoner)
Constructor. |
Method Summary | |
---|---|
private java.lang.Boolean |
areServiceSessionsChanged(java.util.List<ServiceSession> oldList,
java.util.List<ServiceSession> newList)
This method checks two lists of ServiceSession objects to see if
they contain the same elements |
private java.util.List<ServiceSession> |
getApSessionsFromNewList(java.util.List<ServiceSession> updatedList)
Extracts a list of ServiceSession objects that have a target bit
rate set |
void |
reportChangeInServiceSessionList(java.util.List<ServiceSession> updatedList)
This method should be called when a change occurs in ServiceSessionBank . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<ServiceSession> markedSessions
ServiceSession
objects relevant to AP
private ActionReasoner actionReasoner
Constructor Detail |
---|
public ActionPlaneSessions(ActionReasoner actionReasoner)
ActionReasoner
as parameter.ActionReasoner
will be called when changes markedSessions occur
actionReasoner
- to call when changes occurMethod Detail |
---|
public void reportChangeInServiceSessionList(java.util.List<ServiceSession> updatedList)
ServiceSessionBank
. When changes occur, the list obtained by
might have to be updated accordingly.
updatedList
- the new list of ServiceSession
objectsprivate java.util.List<ServiceSession> getApSessionsFromNewList(java.util.List<ServiceSession> updatedList)
ServiceSession
objects that have a target bit
rate set
updatedList
- the list to iterate
private java.lang.Boolean areServiceSessionsChanged(java.util.List<ServiceSession> oldList, java.util.List<ServiceSession> newList)
ServiceSession
objects to see if
they contain the same elements
oldList
- the first listnewList
- the new list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |