public class DefaultStateFactory extends Object implements StateFactory, Cloneable
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a new StateFactory object which is the same as this StateFactory.
|
State |
create(boolean initial,
boolean terminal) |
Set<State> |
stateSet()
Return a new empty set that can contains State instances created by this
factory.
|
public State create(boolean initial, boolean terminal)
create in interface StateFactoryinitial - initialterminal - terminalpublic Set<State> stateSet()
StateFactorystateSet in interface StateFactorypublic Object clone() throws CloneNotSupportedException
StateFactoryclone in interface StateFactoryclone in class ObjectCloneNotSupportedException - if clone not supportedCopyright © 2020. All rights reserved.