public class GetProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_CYCLE_TIME
Deprecated.
|
static double |
DEFAULT_CYCLE_TIME_IN_MS |
static double |
DEFAULT_CYCLE_TIME_IN_SEC |
static double |
DEFAULT_CYCLE_TIME_IN_US |
Constructor and Description |
---|
GetProperties() |
Modifier and Type | Method and Description |
---|---|
static double |
convertToScale(double origvalue,
UnitLiteral original,
UnitLiteral target)
Converts the value from the original unit to the target unit
|
static EnumerationLiteral |
findEnumerationLiteral(Element context,
java.lang.String enumerationType,
java.lang.String literal) |
static EnumerationLiteral |
findEnumerationLiteral(Property pd,
java.lang.String literalname) |
static UnitLiteral |
findUnitLiteral(Element context,
java.lang.String unitsType,
java.lang.String literal) |
static UnitLiteral |
findUnitLiteral(Property pd,
java.lang.String literalname)
Retrieve the unit literal given a unit string for a property It is useful
when calling getScaledValue methods that require the literal as object
|
static double |
fromMStoSec(NamedElement ne,
double value) |
static double |
fromUStoSec(NamedElement ne,
double value) |
static double |
getAccessLatencyinMS(ComponentInstance HWcomp,
ComponentInstance bus) |
static java.util.List<ComponentInstance> |
getActualConnectionBinding(ComponentInstance io) |
static java.util.List |
getActualConnectionBinding(NamedElement ne) |
static double |
getActualLatencyinMS(NamedElement ne) |
static java.util.List<ComponentInstance> |
getActualMemoryBinding(InstanceObject io) |
static double |
getActualMIPS(ComponentInstance bci) |
static java.util.List<ComponentInstance> |
getActualProcessorBinding(ComponentInstance io) |
static Property |
getActualProcessorBindingProperty(ComponentInstance io) |
static java.util.List<ComponentInstance> |
getAllowedProcessorBinding(ComponentInstance io) |
static java.util.List<ComponentClassifier> |
getAllowedProcessorBindingClass(ComponentInstance io) |
static double |
getBandWidthBudgetInKbps(NamedElement ne,
double defaultValue) |
static double |
getBandWidthCapacityInKbps(NamedElement ne,
double defaultValue) |
static long |
getByteCount(NamedElement ne) |
static double |
getComputeExecutionTimeinMS(NamedElement ne) |
static double |
getComputeExecutionTimeinReferenceProcessorSec(NamedElement ne) |
static double |
getComputeExecutionTimeinSec(NamedElement ne) |
static EnumerationLiteral |
getConnectionTiming(PortConnection pc) |
static double |
getCycletimeasMIPS(ComponentInstance curprocessor)
return cycletime in terms of MIPS, zero if no cycle timee
|
static double |
getCycleTimeinMS(NamedElement ne) |
static double |
getCycleTimeinSec(NamedElement ne) |
static double |
getCycleTimeinUS(NamedElement ne) |
static double |
getDeadlineinMS(NamedElement ne) |
static double |
getDeadlineinNS(NamedElement ne) |
static double |
getDeadlineinSec(NamedElement ne) |
static UnitLiteral |
getDelayedUnitLiteral(PortConnection pc) |
static EnumerationLiteral |
getDispatchProtocol(NamedElement ne) |
static EnumerationLiteral |
getImmediateUnitLiteral(PortConnection pc) |
static boolean |
getIsPartition(NamedElement ne) |
static UnitLiteral |
getKBUnitLiteral(NamedElement context) |
static double |
getLatencyinMS(NamedElement ne) |
static double |
getMIPSActualInMIPS(NamedElement ne,
double defaultValue) |
static double |
getMIPSBudgetInMIPS(NamedElement ne) |
static double |
getMIPSBudgetInMIPS(NamedElement ne,
double defaultValue) |
static double |
getMIPSCapacityInMIPS(NamedElement ne,
double defaultValue) |
static UnitLiteral |
getMIPSUnitLiteral(NamedElement context) |
static UnitLiteral |
getMSUnitLiteral(NamedElement context) |
static RecordValue |
getNotCollocated(NamedElement ne) |
static double |
getPartitionLatency(NamedElement ph,
double defaultValue) |
static double |
getPartitionLatencyinMS(NamedElement ne,
double defaultValue) |
static double |
getPeriodinMS(NamedElement ne) |
static double |
getPeriodinNS(NamedElement ne) |
static double |
getPeriodInSeconds(NamedElement ne,
double defaultValue) |
static double |
getPowerBudget(NamedElement ne,
double defaultValue) |
static double |
getPowerCapacity(NamedElement ne,
double defaultValue) |
static double |
getPowerSupply(NamedElement ne,
double defaultValue) |
static long |
getPriority(NamedElement ne,
long defaultValue) |
static double |
getProcessorScalingFactor(ComponentInstance thread)
get the scaling factor between the processor the thread is bound to and
the reference processor used to specify the execution time
Calculate it based on cycle time and reference cycle time
if either is not specified, try looking for the scaling factor (predeclared or SEI)
|
static long |
getQueueSize(NamedElement ne) |
static double |
getRAMActualInKB(NamedElement ne,
double defaultValue) |
static double |
getRAMBudgetInKB(NamedElement ne,
double defaultValue) |
static double |
getRAMCapacityInKB(NamedElement ne,
double defaultValue) |
static double |
getReferenceCycleTimeConstantinSec(Element context) |
static double |
getReferenceCycleTimeConstantinUS(Element context) |
static double |
getReferenceCycleTimeinSec(ComponentInstance thread) |
static double |
getReferenceCycleTimeinUS(ComponentInstance thread)
get cycle time that is the reference for the execution time of the thread
This value is determined based on the reference processor, or the
ReferenceCycleTime constant
|
static double |
getReferenceMIPS(ComponentInstance thread)
Get the MIPS per sec of the reference processor.
|
static ComponentClassifier |
getReferenceProcessor(NamedElement ne) |
static boolean |
getRequiredConnection(NamedElement ne) |
static double |
getROMActualInKB(NamedElement ne,
double defaultValue) |
static double |
getROMBudgetInKB(NamedElement ne,
double defaultValue) |
static double |
getROMCapacityInKB(NamedElement ne,
double defaultValue) |
static double |
getScalingFactorPropertyValue(ComponentInstance processor) |
static java.lang.String |
getSchedulingProtocol(NamedElement ne) |
static UnitLiteral |
getSecUnitLiteral(NamedElement context) |
static double |
getSourceCodeSizeInBytes(NamedElement ne) |
static double |
getSourceDataSizeInBytes(NamedElement ne) |
static double |
getSourceStackSizeInBytes(NamedElement ne) |
static double |
getStreamMissRate(NamedElement ne) |
static RecordValue |
getTransmissionTime(NamedElement ne) |
static UnitLiteral |
getUSUnitLiteral(NamedElement context) |
static PropertyConstant |
lookupPropertyConstant(org.eclipse.emf.ecore.EObject context,
java.lang.String qname)
find property constant for given name.
|
static PropertyConstant |
lookupPropertyConstant(org.eclipse.emf.ecore.EObject context,
java.lang.String ps,
java.lang.String name)
find property constant for given name.
|
static Property |
lookupPropertyDefinition(org.eclipse.emf.ecore.EObject context,
java.lang.String ps,
java.lang.String name)
find property definition for given name.
|
static PropertyType |
lookupPropertyType(org.eclipse.emf.ecore.EObject context,
java.lang.String qname)
find property type for given name.
|
static PropertyType |
lookupPropertyType(org.eclipse.emf.ecore.EObject context,
java.lang.String ps,
java.lang.String name)
find property type for given name.
|
static UnitLiteral |
scaleupUnit(double origvalue,
UnitLiteral original)
Determines the target unit from the original unit to scale the value to a
higher unit The goal is
|
static double |
scaleValueToMicroSecond(NumberValue nv) |
static double |
scaleValueToSecond(NumberValue nv) |
static java.lang.String |
toStringScaled(double value,
UnitLiteral unit) |
@Deprecated public static final double DEFAULT_CYCLE_TIME
public static final double DEFAULT_CYCLE_TIME_IN_SEC
public static final double DEFAULT_CYCLE_TIME_IN_MS
public static final double DEFAULT_CYCLE_TIME_IN_US
public static Property lookupPropertyDefinition(org.eclipse.emf.ecore.EObject context, java.lang.String ps, java.lang.String name)
context
- EObject the model object that references the property definitionps
- String property set name, which may be nullname
- String Property Definition namepublic static PropertyType lookupPropertyType(org.eclipse.emf.ecore.EObject context, java.lang.String ps, java.lang.String name)
context
- EObject the model object that references the property definitionps
- String property set name, which may be nullname
- String Property Type namepublic static PropertyType lookupPropertyType(org.eclipse.emf.ecore.EObject context, java.lang.String qname)
context
- EObject the model object that references the property definitionqname
- String Property Type qualified namepublic static PropertyConstant lookupPropertyConstant(org.eclipse.emf.ecore.EObject context, java.lang.String ps, java.lang.String name)
context
- EObject the model object that references the property definitionps
- String property set name, which may be nullname
- String Property Constant namepublic static PropertyConstant lookupPropertyConstant(org.eclipse.emf.ecore.EObject context, java.lang.String qname)
context
- EObject the model object that references the property definitionps
- String property set name, which may be nullname
- String Property Constant namepublic static UnitLiteral findUnitLiteral(Property pd, java.lang.String literalname)
pd
- Property Definitionliteralname
- Stringpublic static UnitLiteral findUnitLiteral(Element context, java.lang.String unitsType, java.lang.String literal)
public static EnumerationLiteral findEnumerationLiteral(Property pd, java.lang.String literalname)
public static EnumerationLiteral findEnumerationLiteral(Element context, java.lang.String enumerationType, java.lang.String literal)
public static UnitLiteral getKBUnitLiteral(NamedElement context)
public static UnitLiteral getMSUnitLiteral(NamedElement context)
public static UnitLiteral getUSUnitLiteral(NamedElement context)
public static UnitLiteral getSecUnitLiteral(NamedElement context)
public static UnitLiteral getMIPSUnitLiteral(NamedElement context)
public static Property getActualProcessorBindingProperty(ComponentInstance io)
public static java.util.List<ComponentInstance> getActualProcessorBinding(ComponentInstance io)
public static java.util.List<ComponentInstance> getActualConnectionBinding(ComponentInstance io)
public static java.util.List<ComponentInstance> getAllowedProcessorBinding(ComponentInstance io)
public static java.util.List<ComponentClassifier> getAllowedProcessorBindingClass(ComponentInstance io)
public static java.util.List<ComponentInstance> getActualMemoryBinding(InstanceObject io)
public static java.util.List getActualConnectionBinding(NamedElement ne)
public static double getMIPSCapacityInMIPS(NamedElement ne, double defaultValue)
public static double getMIPSBudgetInMIPS(NamedElement ne, double defaultValue)
public static double getMIPSActualInMIPS(NamedElement ne, double defaultValue)
public static double getRAMCapacityInKB(NamedElement ne, double defaultValue)
public static double getRAMBudgetInKB(NamedElement ne, double defaultValue)
public static double getRAMActualInKB(NamedElement ne, double defaultValue)
public static double getROMCapacityInKB(NamedElement ne, double defaultValue)
public static double getROMBudgetInKB(NamedElement ne, double defaultValue)
public static double getROMActualInKB(NamedElement ne, double defaultValue)
public static double getBandWidthCapacityInKbps(NamedElement ne, double defaultValue)
public static double getBandWidthBudgetInKbps(NamedElement ne, double defaultValue)
public static ComponentClassifier getReferenceProcessor(NamedElement ne)
public static double getCycleTimeinUS(NamedElement ne)
public static double getCycleTimeinMS(NamedElement ne)
public static double getCycleTimeinSec(NamedElement ne)
public static double getPartitionLatency(NamedElement ph, double defaultValue)
public static double scaleValueToMicroSecond(NumberValue nv)
public static double scaleValueToSecond(NumberValue nv)
public static RecordValue getTransmissionTime(NamedElement ne)
public static double getActualMIPS(ComponentInstance bci)
public static double getReferenceCycleTimeinUS(ComponentInstance thread)
thread
- public static double getReferenceCycleTimeinSec(ComponentInstance thread)
public static double getReferenceCycleTimeConstantinUS(Element context)
public static double getReferenceCycleTimeConstantinSec(Element context)
public static double fromMStoSec(NamedElement ne, double value)
public static double fromUStoSec(NamedElement ne, double value)
public static double getProcessorScalingFactor(ComponentInstance thread)
thread
- public static double getScalingFactorPropertyValue(ComponentInstance processor)
public static double getReferenceMIPS(ComponentInstance thread)
public static double getCycletimeasMIPS(ComponentInstance curprocessor)
curprocessor
- public static double getPowerCapacity(NamedElement ne, double defaultValue)
public static double getPowerBudget(NamedElement ne, double defaultValue)
public static double getPowerSupply(NamedElement ne, double defaultValue)
public static double getPeriodinMS(NamedElement ne)
public static double getPeriodinNS(NamedElement ne)
public static double getActualLatencyinMS(NamedElement ne)
public static long getQueueSize(NamedElement ne)
public static double getMIPSBudgetInMIPS(NamedElement ne)
public static double getDeadlineinSec(NamedElement ne)
public static double getDeadlineinMS(NamedElement ne)
public static double getDeadlineinNS(NamedElement ne)
public static double getComputeExecutionTimeinMS(NamedElement ne)
public static double getComputeExecutionTimeinSec(NamedElement ne)
public static double getComputeExecutionTimeinReferenceProcessorSec(NamedElement ne)
public static double getPeriodInSeconds(NamedElement ne, double defaultValue)
public static long getPriority(NamedElement ne, long defaultValue)
public static java.lang.String getSchedulingProtocol(NamedElement ne)
public static EnumerationLiteral getDispatchProtocol(NamedElement ne)
public static double getSourceDataSizeInBytes(NamedElement ne)
public static double getSourceCodeSizeInBytes(NamedElement ne)
public static double getSourceStackSizeInBytes(NamedElement ne)
public static double getPartitionLatencyinMS(NamedElement ne, double defaultValue)
public static boolean getIsPartition(NamedElement ne)
public static double getLatencyinMS(NamedElement ne)
public static double getAccessLatencyinMS(ComponentInstance HWcomp, ComponentInstance bus)
public static double convertToScale(double origvalue, UnitLiteral original, UnitLiteral target)
public static UnitLiteral scaleupUnit(double origvalue, UnitLiteral original)
public static java.lang.String toStringScaled(double value, UnitLiteral unit)
public static long getByteCount(NamedElement ne)
public static double getStreamMissRate(NamedElement ne)
public static boolean getRequiredConnection(NamedElement ne)
public static RecordValue getNotCollocated(NamedElement ne)
public static EnumerationLiteral getConnectionTiming(PortConnection pc)
public static UnitLiteral getDelayedUnitLiteral(PortConnection pc)
public static EnumerationLiteral getImmediateUnitLiteral(PortConnection pc)