public class DeploymentUtil
extends Object
| Constructor and Description |
|---|
DeploymentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Set<ProcessingUnit> |
getAssignedCoreForProcess(Process process,
Amalthea model)
Returns the cores the process is assigned to.
|
List<HwFeatureCategory> |
getFeatureCategories(ProcessingUnitDefinition procUnitDef) |
static Set<ISR> |
getISRsMappedToCore(ProcessingUnit core,
Amalthea model)
Returns a set of all ISR mapped to that core
|
static Set<Memory> |
getLabelMapping(Label label)
Set of memories the label is mapped to (should be only one!)
|
static Set<Process> |
getProcessesMappedToCore(ProcessingUnit core,
Amalthea model) |
List<ProcessingUnitDefinition> |
getProcessingUnitDefinitionsForHwCategories(HwFeatureCategory hwFeatureCat,
List<ProcessingUnitDefinition> procUnitDefinitons) |
List<ProcessingUnitDefinition> |
getProcessingUnitDefinitionsForHwFeature(HwFeature feature,
List<ProcessingUnitDefinition> procUnitDefinitons) |
static List<TaskAllocation> |
getTaskAllocations(Task task,
Amalthea model)
Returns a list of all allocations of a task
|
static Set<Task> |
getTasksMappedToCore(ProcessingUnit core,
Amalthea model)
Returns a set of tasks mapped to a core.
|
static boolean |
isMapped(Label label)
Returns true if at least a label mapping exists
|
static MemoryMapping |
setLabelMapping(Label label,
Memory mem,
Amalthea model)
Returns a created LabelMapping element which was already added to the model
|
public static Set<Process> getProcessesMappedToCore(ProcessingUnit core,
Amalthea model)
public static Set<Task> getTasksMappedToCore(ProcessingUnit core,
Amalthea model)
public static Set<ISR> getISRsMappedToCore(ProcessingUnit core,
Amalthea model)
public static List<TaskAllocation> getTaskAllocations(Task task,
Amalthea model)
public static boolean isMapped(Label label)
public static Set<Memory> getLabelMapping(Label label)
public static MemoryMapping setLabelMapping(Label label,
Memory mem,
Amalthea model)
public static Set<ProcessingUnit> getAssignedCoreForProcess(Process process,
Amalthea model)
process - Task or ISRmodel - the containing modelpublic List<HwFeatureCategory> getFeatureCategories(ProcessingUnitDefinition procUnitDef)
procUnitDef - processing unit definitionpublic List<ProcessingUnitDefinition> getProcessingUnitDefinitionsForHwCategories(HwFeatureCategory hwFeatureCat,
List<ProcessingUnitDefinition> procUnitDefinitons)
hwFeatureCat - selection criteriaprocUnitDefinitons - list of potential definitionspublic List<ProcessingUnitDefinition> getProcessingUnitDefinitionsForHwFeature(HwFeature feature,
List<ProcessingUnitDefinition> procUnitDefinitons)
feature - selection criteriaprocUnitDefinitons - list of potential definitions