|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<DeviceConsumer<E>>
jmce.sim.SampleDeviceProducer<E>
jmce.sim.BufferedDeviceProducer<E>
public class BufferedDeviceProducer<E>
Buffer implementation of device producer. If one or more DeviceConsumer are installed the data are transmitted are sent directly as a SampleDeviceProducer but if no DeviceConsumer is installed data are stored in one RingBuffer and later can be received.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
BufferedDeviceProducer()
Default contructor. |
|
BufferedDeviceProducer(int size)
|
Method Summary | |
---|---|
void |
addConsumer(DeviceConsumer<E> c)
Add a new consumer |
E |
consume()
|
boolean |
isEmpty()
|
boolean |
isFull()
|
void |
produce(E c)
|
Methods inherited from class jmce.sim.SampleDeviceProducer |
---|
consume, removeConsumer |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public BufferedDeviceProducer()
public BufferedDeviceProducer(int size)
Method Detail |
---|
public void addConsumer(DeviceConsumer<E> c)
SampleDeviceProducer
addConsumer
in class SampleDeviceProducer<E>
public void produce(E c) throws SIMException
SIMException
public boolean isFull()
public boolean isEmpty()
isEmpty
in interface java.util.Collection<DeviceConsumer<E>>
isEmpty
in interface java.util.List<DeviceConsumer<E>>
isEmpty
in class java.util.Vector<DeviceConsumer<E>>
public E consume()
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |