@PortedFrom(file="RAutomaton.h", name="RoleAutomaton") public class RoleAutomaton extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
FINAL_STATE
get the final state
|
static int |
INITIAL
get the initial state
|
| Constructor and Description |
|---|
RoleAutomaton()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCopy(RoleAutomaton ra) |
void |
addRA(RoleAutomaton ra)
add RA from a subrole to given one
|
boolean |
addToChain(RoleAutomaton ra,
boolean oSafe)
add an Automaton to the chain with a default state
|
boolean |
addToChain(RoleAutomaton ra,
boolean oSafe,
int fRA)
add an Automaton to the chain that would start from the iRA; OSAFE shows
the safety of a previous automaton in a chain
|
void |
addTransition(int from,
RATransition trans)
add TRANSition leading from a state FROM; all states are known to fit the
ton
|
void |
addTransitionSafe(int state,
RATransition trans)
add TRANSition leading from a given STATE; check whether all states are
correct
|
void |
checkTransition(int from,
int to)
check whether transition between FROM and TO breaks safety
|
RAStateTransitions |
get(int i) |
List<RAStateTransitions> |
getBase() |
RAStateTransitions |
getRAStateTransitions(int state) |
void |
initChain(int from)
make the beginning of the chain
|
void |
initMap(int raSize,
int fra)
init internal map according to RA size, with new initial state from
chainState and (FRA) states
|
boolean |
isCompleted() |
boolean |
isISafe() |
boolean |
isOSafe() |
boolean |
isSimple() |
int |
newState() |
void |
nextChainTransition(int to)
make the internal chain transition (between chainState and TO)
|
void |
print(LogAdapter o) |
void |
setCompleted(boolean b)
mark an automaton as completed
|
void |
setIUnsafe()
state that the automaton is i-unsafe
|
void |
setOUnsafe()
state that the automaton is o-unsafe
|
void |
setup(int nRoles,
boolean data)
set up all transitions passing number of roles
|
int |
size() |
@Original public static final int INITIAL
@PortedFrom(file="RAutomaton.h", name="final") public static final int FINAL_STATE
@PortedFrom(file="RAutomaton.h", name="initChain") public void initChain(int from)
from - from@PortedFrom(file="RAutomaton.h", name="addToChain") public boolean addToChain(RoleAutomaton ra, boolean oSafe)
ra - RAoSafe - oSafe@PortedFrom(file="RAutomaton.h", name="isISafe") public boolean isISafe()
@PortedFrom(file="RAutomaton.h", name="isOSafe") public boolean isOSafe()
@PortedFrom(file="RAutomaton.h", name="addRA") public void addRA(RoleAutomaton ra)
ra - RA@PortedFrom(file="RAutomaton.h", name="addTransitionSafe") public void addTransitionSafe(int state, RATransition trans)
state - statetrans - trans@PortedFrom(file="RAutomaton.h", name="setIUnsafe") public void setIUnsafe()
@PortedFrom(file="RAutomaton.h", name="setOUnsafe") public void setOUnsafe()
@PortedFrom(file="RAutomaton.h", name="checkTransition") public void checkTransition(int from, int to)
from - fromto - to@PortedFrom(file="RAutomaton.h", name="addTransition") public void addTransition(int from, RATransition trans)
from - fromtrans - trans@PortedFrom(file="RAutomaton.h", name="nextChainTransition") public void nextChainTransition(int to)
to - to@PortedFrom(file="RAutomaton.h", name="newState") public int newState()
@PortedFrom(file="RAutomaton.h", name="begin") public RAStateTransitions getRAStateTransitions(int state)
state - state@PortedFrom(file="RAutomaton.h", name="size") public int size()
@PortedFrom(file="RAutomaton.h", name="setup") public void setup(int nRoles, boolean data)
nRoles - nRolesdata - data@PortedFrom(file="RAutomaton.h", name="print") public void print(LogAdapter o)
o - o@PortedFrom(file="RAutomaton.h", name="addCopy") public void addCopy(RoleAutomaton ra)
ra - RA@PortedFrom(file="RAutomaton.h", name="initMap") public void initMap(int raSize, int fra)
raSize - RASizefra - fRA@PortedFrom(file="RAutomaton.h", name="addToChain") public boolean addToChain(RoleAutomaton ra, boolean oSafe, int fRA)
ra - RAoSafe - oSafefRA - fRA@PortedFrom(file="RAutomaton.h", name="begin") public List<RAStateTransitions> getBase()
@PortedFrom(file="RAutomaton.h", name="begin") public RAStateTransitions get(int i)
i - index@PortedFrom(file="RAutomaton.h", name="setCompleted") public void setCompleted(boolean b)
b - new value@PortedFrom(file="RAutomaton.h", name="isCompleted") public boolean isCompleted()
@PortedFrom(file="RAutomaton.h", name="isSimple") public boolean isSimple()
Copyright © 2016 The University of Manchester. All rights reserved.