|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectides.api.plugin.operation.FSAToolbox
public class FSAToolbox
A class of methods useful for checking FSAModels for certain
criteria.
| Field Summary | |
|---|---|
static java.lang.String |
ERROR_CONTROL
A standard error message which can be used by Operations. |
static java.lang.String |
ERROR_OBSERVE
A standard error message which can be used by Operations. |
static java.lang.String |
ERROR_UNABLE_TO_COMPUTE
A standard error message which can be used by Operations. |
static java.lang.String |
ILLEGAL_ARGUMENT
A standard error message which can be used by Operations. |
static java.lang.String |
ILLEGAL_NUMBER_OF_ARGUMENTS
A standard error message which can be used by Operations. |
static java.lang.String |
NO_MARKED_STATES
A standard error message which can be used by Operations. |
static java.lang.String |
NON_DETERM
A standard error message which can be used by Operations. |
static java.lang.String |
NOT_1_INITIAL_STATE
A standard error message which can be used by Operations. |
| Method Summary | |
|---|---|
static boolean |
containsEpsilonTransitions(FSAModel model)
Determines if there are any epsilon transitions in the model. |
static java.util.Set<java.lang.Long> |
getEpsilonTransitions(FSAModel model)
Obtains a set of the ids of all epsilon transitions in the model. |
static java.util.Set<java.lang.Long> |
getInitialStates(FSAModel model)
Obtains a set of the ids of all initial states in the model. |
static java.util.Set<java.lang.Long> |
getMarkedStates(FSAModel model)
Obtains a set of the ids of all marked states in the model. |
static boolean |
hasControllabilityConflict(FSAModel[] models)
A check to see whether there is a conflict in the controllability attribute of events contained in the given models. |
static boolean |
hasObservabilityConflict(FSAModel[] models)
A check to see whether there is a conflict in the observability attribute of events contained in the given models. |
static int |
initialStateCount(FSAModel model)
Identifies the number of initial states in the model. |
static boolean |
isDeterministic(FSAModel model)
Determines whether the model is deterministic, i.e. |
static boolean |
isEmptyLanguage(FSAModel model)
Determines whether the language represented by the automaton is empty. |
static boolean |
isEmptyModel(FSAModel model)
Determines whether the given model is empty (has no states). |
static boolean |
isEpsilonLanguage(FSAModel model)
Determines whether the language represented by the automaton is the epsilon language. |
static int |
markedStateCount(FSAModel model)
Identifies the number of marked states in the model. |
static FSAModel |
modelFromList(java.util.List<DESEvent> list)
Constructs an FSAModel representing a string from a list of
DESEvents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NOT_1_INITIAL_STATE
Operations.
None or more than one initial states.
public static final java.lang.String NO_MARKED_STATES
Operations.
No marked states.
public static final java.lang.String ILLEGAL_ARGUMENT
Operations.
Illegal argument.
public static final java.lang.String ILLEGAL_NUMBER_OF_ARGUMENTS
Operations.
Unsupported number of arguments.
public static final java.lang.String NON_DETERM
Operations.
Nondeterministic model.
public static final java.lang.String ERROR_CONTROL
Operations.
Mismatch between the controllability attributes of events.
public static final java.lang.String ERROR_OBSERVE
Operations.
Mismatch between the observability attributes of events.
public static final java.lang.String ERROR_UNABLE_TO_COMPUTE
Operations.
Unable to compute the operation.
| Method Detail |
|---|
public static java.util.Set<java.lang.Long> getInitialStates(FSAModel model)
model - the model in which to find the initial states
public static int initialStateCount(FSAModel model)
model - the model in which to find the number of initial states
public static java.util.Set<java.lang.Long> getMarkedStates(FSAModel model)
model - the model in which to find the marked states
public static int markedStateCount(FSAModel model)
model - the model in which to find the number of marked states
public static java.util.Set<java.lang.Long> getEpsilonTransitions(FSAModel model)
model - the model in which to find the epsilon transitions
public static boolean containsEpsilonTransitions(FSAModel model)
model - the model in which to determine if there are epsilon
transitions
true if there is at least one epsilon transition in
the model, false otherwise.public static boolean isEmptyModel(FSAModel model)
model - the model to be checked
true if the model contains no states,
false otherwise.public static boolean isEmptyLanguage(FSAModel model)
model - the model under consideration
true if the language represented by the automaton is
empty, false otherwise.public static boolean isEpsilonLanguage(FSAModel model)
model - the model under consideration
true if the language represented by the automaton is
the epsilon language, false otherwise.public static boolean isDeterministic(FSAModel model)
model - the model to be checked
false if model contains epsilon transitions, has
more than one initial state or has a state with more than one
transition firing on the same event, true otherwise.public static boolean hasControllabilityConflict(FSAModel[] models)
models - the models containing the events whose controllability
attributes have to be checked for conflict
true if an event with the same name exists in any
pair of models but is controllable in one and uncontrollable in
the other, false otherwise.public static boolean hasObservabilityConflict(FSAModel[] models)
models - the models containing the events whose observability
attributes have to be checked for conflict
true if an event with the same name exists in any
pair of models but is observable in one and unobservable in the
other, false otherwise.public static FSAModel modelFromList(java.util.List<DESEvent> list)
FSAModel representing a string from a list of
DESEvents.
list - The list of DESEvents to construct the
FSAModel from.
FSAModel representing the given string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||