|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.generators.Generator
algoanim.animalscript.AnimalGenerator
algoanim.animalscript.AnimalConceptualQueueGenerator<T>
public class AnimalConceptualQueueGenerator<T>
ConceptualQueueGenerator| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.generators.Generator |
|---|
lang |
| Constructor Summary | |
|---|---|
AnimalConceptualQueueGenerator(Language aLang)
|
|
| Method Summary | |
|---|---|
void |
create(ConceptualQueue<T> cq)
Creates the originating script code for a given ConceptualQueue,
due to the fact that before a primitive can be worked with it has to be
defined and made known to the script language. |
void |
dequeue(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Removes the first element of the given ConceptualQueue. |
void |
enqueue(ConceptualQueue<T> cq,
T elem,
Timing delay,
Timing duration)
Adds the element elem as the last element to the end of the given
ConceptualQueue. |
void |
front(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Retrieves (without removing) the first element of the given ConceptualQueue. |
void |
highlightFrontCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Highlights the cell which contains the first element of the given ConceptualQueue. |
void |
highlightFrontElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Highlights the first element of the given ConceptualQueue. |
void |
highlightTailCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Highlights the cell which contains the last element of the given ConceptualQueue. |
void |
highlightTailElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Highlights the last element of the given ConceptualQueue. |
void |
isEmpty(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Tests if the given ConceptualQueue is empty. |
void |
tail(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Retrieves (without removing) the last element of the given ConceptualQueue. |
void |
unhighlightFrontCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Unhighlights the cell which contains the first element of the given ConceptualQueue. |
void |
unhighlightFrontElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Unhighlights the first element of the given ConceptualQueue. |
void |
unhighlightTailCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Unhighlights the cell which contains the last element of the given ConceptualQueue. |
void |
unhighlightTailElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
Unhighlights the last element of the given ConceptualQueue. |
| Methods inherited from class algoanim.animalscript.AnimalGenerator |
|---|
addBooleanOption, addBooleanSwitch, addColorOption, addColorOption, addFontOption, addFontOption, addIntOption, addWithTiming, changeColor, exchange, hide, makeColorDef, makeColorDef, makeDisplayOptionsDef, makeDisplayOptionsDef, makeDurationTimingDef, makeHiddenDef, makeNodeDef, makeOffsetTimingDef, moveBy, moveTo, moveVia, rotate, rotate, show |
| Methods inherited from class algoanim.primitives.generators.Generator |
|---|
getLanguage, isNameUsed, isValidDirection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface algoanim.primitives.generators.GeneratorInterface |
|---|
changeColor, exchange, getLanguage, hide, moveBy, moveTo, moveVia, rotate, rotate, show |
| Constructor Detail |
|---|
public AnimalConceptualQueueGenerator(Language aLang)
| Method Detail |
|---|
public void create(ConceptualQueue<T> cq)
ConceptualQueueGeneratorConceptualQueue,
due to the fact that before a primitive can be worked with it has to be
defined and made known to the script language.
create in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue for which the initiate script code
shall be created.
public void dequeue(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
dequeue in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue from which to remove the first element.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void enqueue(ConceptualQueue<T> cq,
T elem,
Timing delay,
Timing duration)
ConceptualQueueGeneratorelem as the last element to the end of the given
ConceptualQueue.
enqueue in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to the end of which to add the element.elem - the element to be added to the end of the queue.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void front(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
front in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue from which to retrieve the first element.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void highlightFrontCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
highlightFrontCell in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void highlightFrontElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
highlightFrontElem in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void highlightTailCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
highlightTailCell in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void highlightTailElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
highlightTailElem in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void isEmpty(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue is empty.
isEmpty in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue which is tested.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void tail(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
tail in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue from which to retrieve the last element.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void unhighlightFrontCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
unhighlightFrontCell in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void unhighlightFrontElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
unhighlightFrontElem in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void unhighlightTailCell(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
unhighlightTailCell in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void unhighlightTailElem(ConceptualQueue<T> cq,
Timing delay,
Timing duration)
ConceptualQueueGeneratorConceptualQueue.
unhighlightTailElem in interface ConceptualQueueGenerator<T>cq - the ConceptualQueue to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||