Class ForkContext

All Implemented Interfaces:
Serializable

public class ForkContext extends SimuComContext
Context for forked behaviours
See Also:
  • Constructor Details

    • ForkContext

      public ForkContext(Context parentContext, SimuComSimProcess parent)
      Constructor of the parallel process
      Parameters:
      parentContext - The current context of the parent thread. Used to evaluate variables in the parallel process
      parent - The parent process
  • Method Details

    • getParentContext

      public Context getParentContext()
    • getAssemblyAllocationLookup

      public IAssemblyAllocationLookup<AbstractSimulatedResourceContainer> getAssemblyAllocationLookup()
      Description copied from class: Context
      The lookup allows to find the suitable simulation entity of the ResourceContainer to which an AssemblyContext is deployed to. Subclasses need to provide the concrete implementation of the lookup mechanism.
      Overrides:
      getAssemblyAllocationLookup in class SimuComContext
      Returns:
      the AssemblyContext allocation lookup
    • initialiseAssemblyContextLookup

      protected void initialiseAssemblyContextLookup()
      Description copied from class: SimuComContext
      Template method to be filled in by the generator. Calles linkAssemblyContextAndResourceContainer to create the deployment specified in the allocation model
      Specified by:
      initialiseAssemblyContextLookup in class SimuComContext