public class SupertaskInfo
extends java.lang.Object
Constructor and Description |
---|
SupertaskInfo(org.eclipse.uml2.uml.InstanceSpecification processorInstance,
java.lang.String name,
float capacity)
Instantiates a new supertask info.
|
Modifier and Type | Method and Description |
---|---|
float |
getCapacity()
Gets the capacity.
|
java.lang.String |
getName()
Gets the name.
|
org.eclipse.uml2.uml.InstanceSpecification |
getProcessorInstance()
Gets the processor instance.
|
void |
setCapacity(float capacity)
Convert capacity from a float to a int value representing the percentage of
utilization of the processor.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setProcessorInstance(org.eclipse.uml2.uml.InstanceSpecification processorInstance)
Sets the processor instance.
|
public SupertaskInfo(org.eclipse.uml2.uml.InstanceSpecification processorInstance, java.lang.String name, float capacity)
processorInstance
- the processor instancename
- the namecapacity
- the capacitypublic float getCapacity()
public void setCapacity(float capacity)
capacity
- the new capacitypublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the new namepublic org.eclipse.uml2.uml.InstanceSpecification getProcessorInstance()
public void setProcessorInstance(org.eclipse.uml2.uml.InstanceSpecification processorInstance)
processorInstance
- the new processor instance