|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jclass.RoundRobin
A synchronized class used in reprezenting a circular list of Objects optimized for round robin parsing.
Written: Radu Sion
Version: 0.24x
Source: RoundRobin.java
Visit
Smart Software
Field Summary | |
static int |
MAX_ENTRIES
The maximum number of entries allowed out of internal reasons |
Constructor Summary | |
RoundRobin(int max_entries)
|
Method Summary | |
int |
applyAll(java.lang.Object ooo)
Powerfull mechanism of applying some function on all the Objects in the structure. |
java.lang.Object |
getCurrent()
Gets the current Object. |
int |
getMaxSize()
Gets the maximum entries allowed in this structure. |
java.lang.Object |
getNext()
Gets the next Object in the structure. |
void |
Insert(java.lang.Object ooo)
Inserts new Object AFTER the current one. |
boolean |
isEmpty()
Tests if structure is empty. |
boolean |
isFull()
Tests if structure is full. |
void |
Remove()
Removes CURRENT Object. |
void |
Remove(java.lang.Object ooo)
Removes the specified Object. |
int |
HREF="../jclass/RoundRobin.html#Size()">Size()
The number of Objects in the structure |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int MAX_ENTRIES
Constructor Detail |
public RoundRobin(int max_entries)
max_entries
- Maximum entries in the structureMethod Detail |
public boolean isEmpty()
public boolean isFull()
public int Size()
public int getMaxSize()
public java.lang.Object getCurrent() throws EmptyException
public java.lang.Object getNext() throws EmptyException
public void Remove() throws EmptyException
public void Remove(java.lang.Object ooo) throws EmptyException
ooo
- The objetc to remove.public void Insert(java.lang.Object ooo) throws FullException
ooo
- Object to insertpublic int applyAll(java.lang.Object ooo)
ooo
- Object that gives the function to apply (but how ?)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |