Interface InterpretableLocationReference
-
- All Known Implementing Classes:
EntityReference
,LinkingResourceReference
,ResourceContainerReference
,UsageScenarioReference
public interface InterpretableLocationReference
This interface is used to point to a generic element within the simulated world. The element might be characterized by multiple model elements, as e.g. the operation of a component instance (assembly) is identified by the Assembly Context as well as the Signature of the Operation Interface. We use this reference to inform listeners about events occurring during simulation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getLocationIdentifier()
Provides an identifier, which is derived based on all of the representing entities.boolean
isLocationIdentifiedBy(EntityReference<?>... entityReferences)
Checks whether the referenced location is represented by the union of the provided references.
-
-
-
Method Detail
-
isLocationIdentifiedBy
boolean isLocationIdentifiedBy(EntityReference<?>... entityReferences)
Checks whether the referenced location is represented by the union of the provided references.- Returns:
- true, if the location is the same
-
getLocationIdentifier
String getLocationIdentifier()
Provides an identifier, which is derived based on all of the representing entities. The identifier can be used as a lookup key for storing related elements is hash map like data structs.- Returns:
- a stable identifier, uniquely determined based on the representing elements.
-
-