Package de.uka.ipd.sdq.pcm.cost
Interface CostRepository
- All Known Implementing Classes:
CostRepositoryImpl
A representation of the model object 'Cost Repository'.
The cost repository is the root element of the cost model. It contains
all costs for a PCM instance and for the different design alternatives.
If we have FixedProcessingResourceCost for certain types of, for example, CPUs, we have to check
the model first which annotated elements are actually used. Same with alternative components.
Only used elements lead to overall cost of the system.
The following features are supported:
- See Also:
- Generated class or method.
- EMF model class or method.
-
Method Summary
Modifier and TypeMethodDescriptiongetCost()
Returns the value of the 'Cost' containment reference list.double
Returns the value of the 'Interest' attribute.int
Returns the value of the 'Time Period Years' attribute.void
setInterest
(double value) Sets the value of the 'Interest
' attribute.void
setTimePeriodYears
(int value) Sets the value of the 'Time Period Years
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getCost
Returns the value of the 'Cost' containment reference list. The list contents are of typeCost
.If the meaning of the 'Cost' containment reference list isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Cost' containment reference list.
- See Also:
- Generated class or method.
- EMF model class or method.
- containment="true" ordered="false"
-
getTimePeriodYears
int getTimePeriodYears()Returns the value of the 'Time Period Years' attribute. The default value is"0"
. Time& nbsp;period in which the operating costs are expected.If the time period is zero it is considered as not set and the perpetuitiy is caluclated, i.e. the total costs if the operating costs are due infinitely long.- Returns:
- the value of the 'Time Period Years' attribute.
- See Also:
- Generated class or method.
- EMF model class or method.
- default="0" required="true" ordered="false"
-
setTimePeriodYears
void setTimePeriodYears(int value) Sets the value of the 'Time Period Years
' attribute.- Parameters:
value
- the new value of the 'Time Period Years' attribute.- See Also:
- Generated class or method.
-
getInterest
double getInterest()Returns the value of the 'Interest' attribute.If the meaning of the 'Interest' attribute isn't clear, there really should be more of a description here...
Assumed interest rate per year for calculating the present value based on the operating costs and the considered time frame in years given by timePeriodYears.
- Returns:
- the value of the 'Interest' attribute.
- See Also:
- Generated class or method.
- EMF model class or method.
- required="true" ordered="false"
-
setInterest
void setInterest(double value) Sets the value of the 'Interest
' attribute.- Parameters:
value
- the new value of the 'Interest' attribute.- See Also:
- Generated class or method.
-