org.inria.ns.reflex.structures
Interface Anticipable

All Known Implementing Classes:
XPathFilter

public interface Anticipable

An anticipable object can perform in advance operations that will be usefull later.

Author:
Philippe Poulard

Method Summary
 void endAnticipate()
          The method to call when anticipation is no more required.
 boolean isAnticipating()
          Indicates whether this object is anticipating or not.
 void startAnticipate()
          The method to call when anticipation is required.
 

Method Detail

startAnticipate

void startAnticipate()
                     throws IllegalStateException
The method to call when anticipation is required.

Throws:
IllegalStateException - When no more anticipation can't be performed.

endAnticipate

void endAnticipate()
The method to call when anticipation is no more required.


isAnticipating

boolean isAnticipating()
Indicates whether this object is anticipating or not.

Returns:
true if this object is in the anticipation mode, false otherwise.