Class HashMapAssemblyAllocationLookup<AllocationType>
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.resources.HashMapAssemblyAllocationLookup<AllocationType>
-
- All Implemented Interfaces:
IAssemblyAllocationLookup<AllocationType>
public class HashMapAssemblyAllocationLookup<AllocationType> extends Object implements IAssemblyAllocationLookup<AllocationType>
Provides a simple implementation of the interface based on HashMap. The HashMap itself needs to be kept externally in order to provide editing support.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,AllocationType>internalMap
-
Constructor Summary
Constructors Constructor Description HashMapAssemblyAllocationLookup(Map<String,AllocationType> delegateMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationTypegetAllocatedEntity(String assemblyContextId)Get the entity to which the assembly context identified by the provided ID is allocated to.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup
getAllocatedEntity, getAllocatedEntity
-
-
-
-
Field Detail
-
internalMap
protected final Map<String,AllocationType> internalMap
-
-
Constructor Detail
-
HashMapAssemblyAllocationLookup
public HashMapAssemblyAllocationLookup(Map<String,AllocationType> delegateMap)
-
-
Method Detail
-
getAllocatedEntity
public AllocationType getAllocatedEntity(String assemblyContextId)
Get the entity to which the assembly context identified by the provided ID is allocated to.- Specified by:
getAllocatedEntityin interfaceIAssemblyAllocationLookup<AllocationType>- Parameters:
assemblyContextId- The UUID of the assembly context- Returns:
- the entity
-
-