@PortedFrom(file="RAutomaton.h", name="RoleAutomaton") public class RoleAutomaton extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
final_state
get the state
|
static int |
initial
get the initial state
|
| Constructor and Description |
|---|
RoleAutomaton() |
| 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
|
RAStateTransitions |
begin(int state)
get the 1st (multi-)transition starting in STATE
|
void |
checkTransition(int from,
int to)
check whether transition between FROM and TO breaks safety
|
List<RAStateTransitions> |
getBase() |
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 |
isISafe()
get the i-safe value
|
boolean |
isOSafe()
get the o-safe value
|
int |
newState()
create new state
|
void |
nextChainTransition(int to)
make the internal chain transition (between chainState and TO)
|
void |
print(LogAdapter o) |
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()
return number of distinct states
|
@Original public static int initial
@PortedFrom(file="RAutomaton.h", name="final") public static int final_state
@PortedFrom(file="RAutomaton.h", name="initChain") public void initChain(int from)
@PortedFrom(file="RAutomaton.h", name="addToChain") public boolean addToChain(RoleAutomaton RA, boolean 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)
@PortedFrom(file="RAutomaton.h", name="addTransitionSafe") public void addTransitionSafe(int state, RATransition 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)
@PortedFrom(file="RAutomaton.h", name="addTransition") public void addTransition(int from, RATransition trans)
@PortedFrom(file="RAutomaton.h", name="nextChainTransition") public void nextChainTransition(int to)
@PortedFrom(file="RAutomaton.h", name="newState") public int newState()
@PortedFrom(file="RAutomaton.h", name="begin") public RAStateTransitions begin(int state)
@PortedFrom(file="RAutomaton.h", name="size") public int size()
@PortedFrom(file="RAutomaton.h", name="setup") public void setup(int nRoles, boolean data)
@PortedFrom(file="RAutomaton.h", name="print") public void print(LogAdapter o)
@PortedFrom(file="RAutomaton.h", name="addCopy") public void addCopy(RoleAutomaton RA)
@PortedFrom(file="RAutomaton.h", name="initMap") public void initMap(int RASize, int fRA)
@PortedFrom(file="RAutomaton.h", name="addToChain") public boolean addToChain(RoleAutomaton RA, boolean oSafe, int fRA)
@PortedFrom(file="RAutomaton.h", name="begin") public List<RAStateTransitions> getBase()
Copyright © 2013 The University of Manchester. All Rights Reserved.