gestIT
Class ExpContent

java.lang.Object
  extended by gestIT.ExpContent
Direct Known Subclasses:
TouchContent

public class ExpContent
extends java.lang.Object

Class that represent a generic checker for a constraint to a building block If you need to add a specific constraint to a building block you should extend this class and override the Accept and Consume methods.

Author:
nicola

Constructor Summary
ExpContent()
          Constructor that create a new ExpContent
 
Method Summary
 boolean Accepts(ExpEventArgs args, Token token)
          Method that check if a specific event meet a constraint
 boolean Consume(ExpEventArgs args, Token token)
          Method that consume an event
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpContent

public ExpContent()
Constructor that create a new ExpContent

Method Detail

Accepts

public boolean Accepts(ExpEventArgs args,
                       Token token)
Method that check if a specific event meet a constraint

Parameters:
args - The arguments of the event
token - The token that must be passed
Returns:
True if the event meet the constraint, else otherwise

Consume

public boolean Consume(ExpEventArgs args,
                       Token token)
Method that consume an event

Parameters:
args - The arguments of the event
token - The token that must be passed
Returns:
True if the event has been consumed