public abstract class AbstractStateTransitionFactory
extends java.lang.Object
Constructor and Description |
---|
AbstractStateTransitionFactory(Entity entity)
This constructor is needed by child classes, this class is abstract, cannot be instanced.
|
Modifier and Type | Method and Description |
---|---|
static AbstractStateTransitionFactory |
getFactory(Entity entity)
This function is static and final, is the function that returns the user desired factory.
|
StateTransitionCommand |
transition(Element before,
Element after)
This method implements Reflection to retrieve single transition command.
|
protected Entity entity
public AbstractStateTransitionFactory(Entity entity)
entity,
- from Enumeration Entity, identifies the type of factory the user needs.public static final AbstractStateTransitionFactory getFactory(Entity entity) throws NotFoundException
entity
- from Enumeration Entity, identifies the type of factory the user needs.NotFoundException
- in case of bad input, entity is not supportedpublic StateTransitionCommand transition(Element before, Element after) throws IllegalStateTransitionException
before
- You can pass MeasurementGoal, Question, Metric. state cannot be nullafter
- same as beforeIllegalStateTransitionException