class ParAAMCHybrid[Exp, Abs, Addr, Time] extends ParAAMCState[Exp, Abs, Addr, Time]
ParAAMCHybrid: similar than ParAAMCPart and ParAAMCSet when the number of sets in the worklist if greater or equal to the number of available actors.
The worklist is implemented by an immutable list of set of states.
The main method eval() just send the initial state to the first ActorEval.
Each actor ActorEval evaluates a set of states, updates data, and sends equal part of the worklist to each actor ActorEval available, until to the worklist becomes empty.
- Alphabetic
- By Inheritance
- ParAAMCHybrid
- ParAAMCState
- ParAAMCSState
- ParAAMLSAState
- SeqAAM
- EvalKontMachine
- AbstractMachine
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ParAAMCHybrid()(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
- ParAAMCHybrid → ParAAMCState → ParAAMCSState → ParAAMLSAState → SeqAAM → AbstractMachine
-
def
extractHead(list: List[Iterable[State]]): (State, List[Iterable[State]])
Return the first item and the remain of list.
Return the first item and the remain of list.
list must be not empty and list.head must be not empty
- Definition Classes
- ParAAMCState
-
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
- ParAAMCState → ParAAMCSState → ParAAMLSAState → AbstractMachine
-
def
name: String
The name of the abstract machine.
The name of the abstract machine.
- Definition Classes
- ParAAMCHybrid → ParAAMCState → 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
- ParAAMCState → ParAAMCSState → ParAAMLSAState → AbstractMachine