Class CustomEstimate
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl
be.kuleuven.cs.distrinet.sparta.core.model.CustomEstimate
- All Implemented Interfaces:
Estimate,Notifier,EObject,EStructuralFeature.Internal.DynamicValueHolder,InternalEObject
public class CustomEstimate
extends be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl
implements Estimate
Custom Estimate implementation, when new estimates need to be created during the analysis.
For example, in parameterizing default attacker profiles.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
MinimalEObjectImpl.Container.DynamicNested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.ContainerNested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImplNested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterListNested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore -
Field Summary
Fields inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl
CONFIDENCE_EDEFAULT, MAXIMUM_EDEFAULT, MINIMUM_EDEFAULT, NAME_EDEFAULT, PROBABLE_EDEFAULTFields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainerFields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETFields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NILFields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Constructor Summary
ConstructorsConstructorDescriptionCustomEstimate(double min, double prob, double max, double conf) Create a new custom estimate.CustomEstimate(double min, double prob, double max, double conf, String name) Create a new custom estimate. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoublegetName()doublevoidSet the name of the estimate.Methods inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl
eGet, eInvoke, eIsSet, eSet, eStaticClass, eUnset, getEstimateName, setConfidence, setMaximum, setMinimum, setProbable, toStringMethods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainerMethods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettingsMethods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValuesMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface be.kuleuven.cs.distrinet.sparta.spartamodel.Estimate
getEstimateName, setConfidence, setMaximum, setMinimum, setProbableMethods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequiredMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Constructor Details
-
CustomEstimate
public CustomEstimate(double min, double prob, double max, double conf) Create a new custom estimate. This class provides the parameters for the modified PERT distribution.- Parameters:
min- - the minimumprob- - the most probable valuemax- - the maximumconf- - the confidence in the estimate
-
CustomEstimate
Create a new custom estimate. This class provides the parameters for the modified PERT distribution.- Parameters:
min- - the minimumprob- - the most probable valuemax- - the maximumconf- - the confidence in the estimatename- - the name of the estimate
-
-
Method Details
-
getMinimum
public double getMinimum()Description copied from class:be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Specified by:
getMinimumin interfaceEstimate- Overrides:
getMinimumin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Returns:
- the minimum of the estimate
- See Also:
-
getProbable
public double getProbable()Description copied from class:be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Specified by:
getProbablein interfaceEstimate- Overrides:
getProbablein classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Returns:
- the most probable value of the estimate
- See Also:
-
getMaximum
public double getMaximum()Description copied from class:be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Specified by:
getMaximumin interfaceEstimate- Overrides:
getMaximumin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Returns:
- the maximum of the estimate
- See Also:
-
getConfidence
public double getConfidence()Description copied from class:be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Specified by:
getConfidencein interfaceEstimate- Overrides:
getConfidencein classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl- Returns:
- the confidence in the estimate
- See Also:
-
getName
Description copied from class:be.kuleuven.cs.distrinet.sparta.spartamodel.impl.EstimateImpl -
setName
Set the name of the estimate.
-