class ParAAMCSState[Exp, Abs, Addr, Time] extends ParAAMLSAState[Exp, Abs, Addr, Time]
ParAAMCSState: ParAAM-C-S-state for Parallel AAM - Concurrent - Sender - state
The worklist is implemented by an immutable list of sets of states.
The main method eval() just starts the unique actor ActorSender. This actor sends the initial state to the first actor ActorEval.
Each actor ActorEval evaluates a state, updates data, and sends that it is now available to the actor ActorSender.
Each time that the ActorSender receives a message from an actor ActorEval, it sends one state of the worklist to each actor ActorEval available, until to the worklist becomes empty.
Extend ParAAMLSAState class to reuse common code.
- Alphabetic
- By Inheritance
- ParAAMCSState
- ParAAMLSAState
- SeqAAM
- EvalKontMachine
- AbstractMachine
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ParAAMCSState()(implicit arg0: Expression[Exp], arg1: JoinLattice[Abs], arg2: Address[Addr], arg3: Timestamp[Time])
Type Members
-
trait
Output extends AnyRef
The output of the abstract machine.
The output of the abstract machine.
- Definition Classes
- AbstractMachine
-
trait
Control extends MemoHashCode
The control component of the machine
The control component of the machine
- Definition Classes
- EvalKontMachine
-
case class
ControlError(err: SemanticError) extends Control with Product with Serializable
Or an error component, in case an error is reached (e.g., incorrect number of arguments in a function call)
Or an error component, in case an error is reached (e.g., incorrect number of arguments in a function call)
- Definition Classes
- EvalKontMachine
-
case class
ControlEval(exp: Exp, env: Environment[Addr]) extends Control with Product with Serializable
It can either be an eval component, where an expression needs to be evaluated in an environment
It can either be an eval component, where an expression needs to be evaluated in an environment
- Definition Classes
- EvalKontMachine
-
case class
ControlKont(v: Abs) extends Control with Product with Serializable
Or it can be a continuation component, where a value has been reached and a continuation should be popped from the stack to continue the evaluation
Or it can be a continuation component, where a value has been reached and a continuation should be popped from the stack to continue the evaluation
- Definition Classes
- EvalKontMachine
-
type
CollectedLocalResults = (List[State], Option[Graph[State]])
- Definition Classes
- ParAAMLSAState
-
type
LocalResults = (List[State], List[(State, Set[State])])
- Definition Classes
- ParAAMLSAState
-
trait
KontAddr extends MemoHashCode
The store used for continuations is a KontStore (defined in Kontinuation.scala).
The store used for continuations is a KontStore (defined in Kontinuation.scala). It is parameterized by continuation addresses, that are element of the KontAddress typeclass.
- Definition Classes
- SeqAAM
Value Members
-
def
collectLocalResults(actors: Array[ActorRef], message: Int, timeout: FiniteDuration, computeGraph: Boolean, selfActor: ActorRef = null, selfLocal: LocalResults = (Nil, Nil)): CollectedLocalResults
Sends message to each actor to ask halted and edges collected locally.
Sends message to each actor to ask halted and edges collected locally. Builds and returns complete halted and graph results.
- Definition Classes
- ParAAMLSAState
-
def
eval(exp: Exp, sem: Semantics[Exp, Abs, Addr, Time], config: MachineConfig): Output
Performs the evaluation of an expression as SeqAAM.eval.
Performs the evaluation of an expression as SeqAAM.eval. It is the main work that is parallelized.
- exp
The program to be evaluate
- config
Specify some parameters of the machine
- returns
An object implementing the Output trait, containing information about the evaluation.
- Definition Classes
- ParAAMCSState → ParAAMLSAState → SeqAAM → AbstractMachine
-
def
isParallel: Boolean
Returns true iff the machine is a parallel machine
Returns true iff the machine is a parallel machine
- Definition Classes
- ParAAMLSAState → AbstractMachine
-
def
minProcess: Int
Returns the minimum processes possible for this machine.
Returns the minimum processes possible for this machine. Must be >= 1 and must be 1 if !isParallel.
- Definition Classes
- ParAAMCSState → ParAAMLSAState → AbstractMachine
-
def
name: String
The name of the abstract machine.
The name of the abstract machine.
- Definition Classes
- ParAAMCSState → ParAAMLSAState → SeqAAM → AbstractMachine
-
def
nbNotEvalProcess: Int
Returns the number of processes that whose task is not to perform step evaluation.
Returns the number of processes that whose task is not to perform step evaluation. Must be >= 0.
- Definition Classes
- ParAAMCSState → ParAAMLSAState → AbstractMachine