fr.ifremer.isisfish.simulator.launcher
Class SimulationQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue<SimulationJob>
fr.ifremer.isisfish.simulator.launcher.SimulationQueue
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<SimulationJob>, java.util.Collection<SimulationJob>, java.util.concurrent.BlockingQueue<SimulationJob>, java.util.Queue<SimulationJob>
public class SimulationQueue
- extends JDKPriorityBlockingQueue<SimulationJob>
Multi tail PriorityBlockingQueue.
- Version:
- $Revision: 2741 $
Last update : $Date: 2009-11-05 15:29:02 +0100 (jeu., 05 nov. 2009) $
By : $Author: chatellier $
- Author:
- poussin
- See Also:
- Serialized Form
| Methods inherited from class fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue |
add, clear, comparator, contains, drainTo, drainTo, iterator, offer, put, remainingCapacity, size, toArray, toArray, toString |
| Methods inherited from class java.util.AbstractQueue |
addAll, element, remove |
| Methods inherited from class java.util.AbstractCollection |
containsAll, isEmpty, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Queue |
element, remove |
| Methods inherited from interface java.util.Collection |
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll |
parent
protected SimulationQueue parent
childs
protected java.util.List<SimulationQueue> childs
SimulationQueue
public SimulationQueue()
SimulationQueue
public SimulationQueue(SimulationQueue parent)
addChild
public void addChild(SimulationQueue c)
remove
public boolean remove(java.lang.Object o)
- Description copied from class:
JDKPriorityBlockingQueue
- Removes a single instance of the specified element from this queues,
if it is present. More formally, removes an element
e such
that o.equals(e), if this queues contains one or more such
elements. Returns true if and only if this queues contained
the specified element (or equivalently, if this queues changed as a
result of the call).
- Specified by:
remove in interface java.util.Collection<SimulationJob>- Specified by:
remove in interface java.util.concurrent.BlockingQueue<SimulationJob>- Overrides:
remove in class JDKPriorityBlockingQueue<SimulationJob>
- Parameters:
o - element to be removed from this queues, if present
- Returns:
- true if this queues changed as a result of the call
offer
public boolean offer(SimulationJob e)
- Description copied from class:
JDKPriorityBlockingQueue
- Inserts the specified element into this priority queues.
- Specified by:
offer in interface java.util.concurrent.BlockingQueue<SimulationJob>- Specified by:
offer in interface java.util.Queue<SimulationJob>- Overrides:
offer in class JDKPriorityBlockingQueue<SimulationJob>
- Parameters:
e - the element to add
- Returns:
- true (as specified by
Queue.offer(E))
peek
public SimulationJob peek()
- Specified by:
peek in interface java.util.Queue<SimulationJob>- Overrides:
peek in class JDKPriorityBlockingQueue<SimulationJob>
poll
public SimulationJob poll()
- Specified by:
poll in interface java.util.Queue<SimulationJob>- Overrides:
poll in class JDKPriorityBlockingQueue<SimulationJob>
take
public SimulationJob take()
throws java.lang.InterruptedException
- Specified by:
take in interface java.util.concurrent.BlockingQueue<SimulationJob>- Overrides:
take in class JDKPriorityBlockingQueue<SimulationJob>
- Throws:
java.lang.InterruptedException
poll
public SimulationJob poll(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
poll in interface java.util.concurrent.BlockingQueue<SimulationJob>- Overrides:
poll in class JDKPriorityBlockingQueue<SimulationJob>
- Throws:
java.lang.InterruptedException
Copyright © 1999-2010 CodeLutin. All Rights Reserved.