|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractCollection<E>
AbstractList<E>
ArrayList
FnbWhiteList
public class FnbWhiteList
This class stores a (white) list of entity IDs, such that their messages are guaranteed not to be dropped in the network.
| Field Summary |
|---|
| Fields inherited from class AbstractList |
|---|
modCount |
| Method Summary | |
|---|---|
boolean |
addEntityID(int id)
Adds this entity ID to the white list. |
boolean |
addEntityID(Integer id)
Adds this entity ID to the white list. |
boolean |
checkList(int id)
Returns true if the given id is in the white list. |
static FnbWhiteList |
getInstance()
Returns an instance of this white list. |
boolean |
removeID(int id)
Removes the given entity id from the white list. |
| Methods inherited from class ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Method Detail |
|---|
public static FnbWhiteList getInstance()
public boolean checkList(int id)
id - an entity id
public boolean addEntityID(Integer id)
Input and
Output ports associated with this entity ID.
id - an entity ID
Input,
Outputpublic boolean addEntityID(int id)
Input and
Output ports associated with this entity ID.
id - an entity ID
Input,
Outputpublic boolean removeID(int id)
id - the entity id to be removed from the white list
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||