public class SiGMLInputAnimGenCoordinator extends java.lang.Object implements StreamedSiGMLReceiver, StreamedSiGMLSupplierForAnimationGen
StreamedSiGMLReceiver
and as a
StreamedSiGMLSupplierForAnimationGen
,
passing the (as yet unanimated) signs it receives from its source on
to a SiGMLAnimationBuildHandler
, supplied at construction time,
and also caching them and passing them on to the coordinator's
target animation generatorConstructor and Description |
---|
SiGMLInputAnimGenCoordinator(SiGMLAnimationBuildHandler sab)
Constructs a new SiGML input animation generation coordinator,
supplying the generated signs to the given animation builder.
|
Modifier and Type | Method and Description |
---|---|
void |
abortCurrentSiGMLStream()
Notifies this receiver that the sign stream associated with the
most recent checkpoint (established using
addStreamAbortCheckpoint() ) has now been aborted, so that
the receiver can respond appropriately. |
void |
addStreamAbortCheckpoint()
Sets a checkpoint for abortion of the sign stream generated for an
individual SiGML document.
|
void |
beginSignStream()
Accepts notification of the start either of the entire input
sign stream, or of an indirectly accessed stream embedded within it,
keeping track of the level of such embedding.
|
void |
clearStreamAbortCheckpoint()
Clears the most recently established stream abortion checkpoint.
|
void |
doneSignAnimation()
Accepts notification from the animation generator that one more
sign has been generated, and forwards this notice to this coordinator's
animation builder.
|
void |
endSignStream()
Accepts notification of the completion either of the entire input
sign stream, or of an indirectly accessed stream embedded within it,
keeping track of the embedding level and notifying this coordinator's
animation builder when the end of the entire input stream has been
encountered.
|
AnimatedSign |
getNextSignToBeAnimated()
Called by animation generation task.
|
StreamedSiGMLSupplierForAnimationGen |
getSiGMLSupplierForAG()
Returns the SiGML supplier for animation generation to be used
in association with this coordinator.
|
void |
putProcessedSign(AnimatedSign as)
Accepts a notification from this supplier's client indicating that
it has processed a sign in the stream.
|
void |
setNewPlayerSettings(sigmlgen.playerctrl.PlayerSettings ps)
Accepts a new player settings specification from the input source;
these settings will be applied to the next sign received.
|
void |
setNextSign(java.lang.String gsigml,
java.lang.String gloss)
Accepts the next gestural SiGML sign, as specified by the arguments,
from the input source, passing it on to this coordinator's animation
builder, and queuing it so that it can be supplied when requested
from this coordinator's target animation generator.
|
void |
setNextSignWithAnim(AnimatedSign sign)
Accepts the next sign as one with animation data already attached,
passing it on to this coordinator's animation builder, and queuing
it so that it can be supplied when requested from this coordinator's
target animation generator.
|
public SiGMLInputAnimGenCoordinator(SiGMLAnimationBuildHandler sab)
public StreamedSiGMLSupplierForAnimationGen getSiGMLSupplierForAG()
FilteringSupplierForAnimGen
instance supported by this
coordinator.public void beginSignStream()
beginSignStream
in interface StreamedSiGMLReceiver
public void setNewPlayerSettings(sigmlgen.playerctrl.PlayerSettings ps)
setNewPlayerSettings
in interface StreamedSiGMLReceiver
public void setNextSign(java.lang.String gsigml, java.lang.String gloss)
setNextSign
in interface StreamedSiGMLReceiver
public void setNextSignWithAnim(AnimatedSign sign)
setNextSignWithAnim
in interface StreamedSiGMLReceiver
public void endSignStream()
endSignStream
in interface StreamedSiGMLReceiver
public void addStreamAbortCheckpoint()
clearStreamAbortCheckpoint()
or of
abortCurrentSiGMLStream()
.addStreamAbortCheckpoint
in interface StreamedSiGMLReceiver
public void abortCurrentSiGMLStream()
addStreamAbortCheckpoint()
) has now been aborted, so that
the receiver can respond appropriately.
If the stream in question has started it is now terminated, and
if it is the top-level stream and has not yet started, an empty
sign sequence is notified to this coordinator's animation builder.abortCurrentSiGMLStream
in interface StreamedSiGMLReceiver
public void clearStreamAbortCheckpoint()
clearStreamAbortCheckpoint
in interface StreamedSiGMLReceiver
public AnimatedSign getNextSignToBeAnimated() throws java.lang.InterruptedException
null
if
the input sign sequence is known to be exhausted.getNextSignToBeAnimated
in interface StreamedSiGMLSupplierForAnimationGen
java.lang.InterruptedException
public void putProcessedSign(AnimatedSign as)
StreamedSiGMLSupplierForAnimationGen
putProcessedSign
in interface StreamedSiGMLSupplierForAnimationGen
public void doneSignAnimation()
doneSignAnimation
in interface StreamedSiGMLSupplierForAnimationGen