public class CAUtil
extends java.lang.Object
Constructor and Description |
---|
CAUtil() |
Modifier and Type | Method and Description |
---|---|
static CA |
aproduct(CA[] a)
compute the associative product of the CA in the array a
|
static CA |
product(CA[] aut)
compute the product automaton of the CA given in aut
|
protected static void |
recGen(int[][] fin,
int[][] modif,
int[] states,
int indmod,
int indstates,
int[] insert)
Generates all possible combinations of the states in fin, stored in modif
|
static CA |
removeHangedTransitions(CA at)
remove transitions who do not reach a final state
|
static CA |
removeUnreachable(CA at)
remove the unreachable transitions from aut
|
public static CA product(CA[] aut)
aut
- the operands of the productpublic static CA removeUnreachable(CA at)
at
- the CApublic static CA removeHangedTransitions(CA at)
at
- the CAprotected static void recGen(int[][] fin, int[][] modif, int[] states, int indmod, int indstates, int[] insert)
fin
- the array of final states of each principalmodif
- the array of final states of the composition, modified by side effectstates
- states[i] = fin[i].lengthindmod
- index in modif, the first call must be 0indstates
- the index in states, the first call must be states.length-1insert
- it is used to generate all the combinations of final states, the first call must be all zero