Package de.rss.fachstudie.MiSim.parsing
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 Summary
Constructors Constructor Description PatternData() -
Method Summary
Modifier and Type Method Description InstanceOwnedPatterntryGetInstanceOwnedPatternOrNull(MicroserviceInstance owner_instance)Tries to parse the pattern into anInstanceOwnedPattern.ServiceOwnedPatterntryGetServiceOwnedPatternOrNull(Microservice owner_service)Tries to parse the pattern into anServiceOwnedPattern.
-
Constructor Details
-
PatternData
public PatternData()
-
-
Method Details
-
tryGetInstanceOwnedPatternOrNull
Tries to parse the pattern into anInstanceOwnedPattern. Returnsnullotherwise.- Parameters:
owner_instance- microservice instance that owns this pattern- Returns:
- this pattern as
InstanceOwnedPatternornullif it is not instance owned
-
tryGetServiceOwnedPatternOrNull
Tries to parse the pattern into anServiceOwnedPattern. Returnsnullotherwise.- Parameters:
owner_service- microservice that owns this pattern- Returns:
- this pattern as
ServiceOwnedPatternornullif it is not service owned
-