Packages

c

be.opimedia.scala_par_am

ParAAMCHybridH

class ParAAMCHybridH[Exp, Abs, Addr, Time] extends ParAAMCState[Exp, Abs, Addr, Time]

ParAAMCHybridH: ParAAMCHybrid with direct identification of Halted states

Version of ParAAMCHybrid that includes to the worklist only the not halted states. Halted states are directly identified in the set of successors.

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.

Source https://bitbucket.org/OPiMedia/scala-par-am/src/master/scala-par-am/src/main/scala/machine/ParAAMCHybridH.scala

Linear Supertypes
ParAAMCState[Exp, Abs, Addr, Time], ParAAMCSState[Exp, Abs, Addr, Time], ParAAMLSAState[Exp, Abs, Addr, Time], SeqAAM[Exp, Abs, Addr, Time], EvalKontMachine[Exp, Abs, Addr, Time], AbstractMachine[Exp, Abs, Addr, Time], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParAAMCHybridH
  2. ParAAMCState
  3. ParAAMCSState
  4. ParAAMLSAState
  5. SeqAAM
  6. EvalKontMachine
  7. AbstractMachine
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ParAAMCHybridH()(implicit arg0: Expression[Exp], arg1: JoinLattice[Abs], arg2: Address[Addr], arg3: Timestamp[Time])

Type Members

  1. trait Output extends AnyRef

    The output of the abstract machine.

    The output of the abstract machine.

    Definition Classes
    AbstractMachine
  2. trait Control extends MemoHashCode

    The control component of the machine

    The control component of the machine

    Definition Classes
    EvalKontMachine
  3. 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
  4. 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
  5. 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
  6. type CollectedLocalResults = (List[State], Option[Graph[State]])
    Definition Classes
    ParAAMLSAState
  7. type LocalResults = (List[State], List[(State, Set[State])])
    Definition Classes
    ParAAMLSAState
  8. 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

  1. 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
  2. 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
    ParAAMCHybridHParAAMCStateParAAMCSStateParAAMLSAStateSeqAAMAbstractMachine
  3. 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
  4. def isParallel: Boolean

    Returns true iff the machine is a parallel machine

    Returns true iff the machine is a parallel machine

    Definition Classes
    ParAAMLSAStateAbstractMachine
  5. 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
    ParAAMCStateParAAMCSStateParAAMLSAStateAbstractMachine
  6. def name: String

    The name of the abstract machine.

    The name of the abstract machine.

    Definition Classes
    ParAAMCHybridHParAAMCStateParAAMCSStateParAAMLSAStateSeqAAMAbstractMachine
  7. 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
    ParAAMCStateParAAMCSStateParAAMLSAStateAbstractMachine