org.squirrelframework.foundation.fsm.Condition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-foundation Show documentation
Show all versions of squirrel-foundation Show documentation
foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.
package org.squirrelframework.foundation.fsm;
/**
* A constraint which must evaluate to true after the trigger occurs in order for the transition to complete.
*
* @author Henry.He
*
* @param type of context
*/
public interface Condition {
/**
* @param context context object
* @return whether the context satisfied current condition
*/
boolean isSatisfied(C context);
}