caoss.simulator.os

## Class Context

- java.lang.Object
- - caoss.simulator.os.Context

-     public class Context
      extends java.lang.Object

  A context (thread execution state)
  Author:
    Herve

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CPUCore` | `getCpuCore()` Get the core where the context is running
    `void` | `jump(InstructionList instructionList)` Jump to a list of instructions
    `void` | `jumpBack()` Jump back to the previous codeblock
    `void` | `loop()` Restart the execution of the current Loop
    `Instruction` | `nextInstruction()` Next instruction to execute
    `void` | `setCPUCore(CPUCore cpuCore)` Set the core where the context is running

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### nextInstruction

          public Instruction nextInstruction()

      Next instruction to execute
      Returns:
        The instruction

    - #### setCPUCore

          public void setCPUCore(CPUCore cpuCore)

      Set the core where the context is running
      Parameters:
        `cpuCore` - The CPU core

    - #### getCpuCore

          public CPUCore getCpuCore()

      Get the core where the context is running
      Returns:
        The CPU core

    - #### jump

          public void jump(InstructionList instructionList)

      Jump to a list of instructions
      Parameters:
        `instructionList` - The target list of instructions

    - #### loop

          public void loop()

      Restart the execution of the current Loop

    - #### jumpBack

          public void jumpBack()

      Jump back to the previous codeblock