queue
last edited 4 years ago by yervand
description
This part is implements a queue. The part has PUSH and POP pins for storing and getting Objects in the queue. As a new element is pushed into the queue an event NEWEVENT is fired. The RESET pin empties the contents of the queue. ISEMPTY let's know whether the queue is empty (returns true if the queue is empty). clears the array.
Figure
inpins
- PUSH - ID = 1 - Object
- Any input object adds to the object array which will automatically resize
- POP - ID=2 - boolean
- Get an event and automatically the "OUT" outpin firs the created array
- ISEMPTY - ID=3 -no param
- Creates 0 sized array in the place of old one
- RESET - ID=4 -no param
- Creates 0 sized array in the place of old one
outpins
- OUTELEMENT - ID=51 - Object
- Fires the fisrt object in the queue
- OUTELEMENT - ID=52 - boolean
- Fires true if the queue is empty and false otherwise
- NEWEVENT - ID=53 - no param
- Pin is fired when a new alement is POPed? into the queue
links to cvs
source - revision 1.0 org.vcb.parts.util.Queue.java at sourceforge.net
configuration file revision 1.0 Queue.vcb at sourceforge.net
status
alpha release