Class PatternData

java.lang.Object
de.rss.fachstudie.MiSim.parsing.PatternData

public class PatternData
extends Object
Generic structure of a pattern. Containing a string based name of the pattern and a map with its configuration.
Author:
Lion Wagner
  • Constructor Details

    • PatternData

      public PatternData()
  • Method Details

    • tryGetInstanceOwnedPatternOrNull

      public InstanceOwnedPattern tryGetInstanceOwnedPatternOrNull​(MicroserviceInstance owner_instance)
      Tries to parse the pattern into an InstanceOwnedPattern. Returns null otherwise.
      Parameters:
      owner_instance - microservice instance that owns this pattern
      Returns:
      this pattern as InstanceOwnedPattern or null if it is not instance owned
    • tryGetServiceOwnedPatternOrNull

      public ServiceOwnedPattern tryGetServiceOwnedPatternOrNull​(Microservice owner_service)
      Tries to parse the pattern into an ServiceOwnedPattern. Returns null otherwise.
      Parameters:
      owner_service - microservice that owns this pattern
      Returns:
      this pattern as ServiceOwnedPattern or null if it is not service owned