Class Attacker
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.ModelElementImpl
be.kuleuven.cs.distrinet.sparta.spartamodel.impl.SecurityElementImpl
be.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl
be.kuleuven.cs.distrinet.sparta.core.model.Attacker
- All Implemented Interfaces:
AttackerProfile,ModelElement,SecurityElement,Notifier,EObject,EStructuralFeature.Internal.DynamicValueHolder,InternalEObject
public class Attacker
extends be.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl
implements AttackerProfile
Custom attacker implementation to use when no attacker profiles are specified in the provided model.
Values are stored in the generated EMF features via the inherited setters rather than in
shadow fields, so reflective access (eGet) and the typed getters stay consistent, and
AttackerProfileImpl.getInsider() returns the model's own (stable) containment list.
-
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.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterListNested 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.AttackerProfileImpl
contactFrequency, enabled, ENABLED_EDEFAULT, insider, probabilityOfAction, threatCapabilityFields inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.ModelElementImpl
annotations, description, DESCRIPTION_EDEFAULT, id, ID_EDEFAULT, name, NAME_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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<Attacker> Get a comparator to sort the attackers according to the minimum of their threat capabilityEstimates.Methods inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl
basicSetContactFrequency, basicSetProbabilityOfAction, basicSetThreatCapability, eGet, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getContactFrequency, getInsider, getProbabilityOfAction, getThreatCapability, isEnabled, setContactFrequency, setEnabled, setProbabilityOfAction, setThreatCapability, toStringMethods inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.ModelElementImpl
getAnnotations, getDescription, getId, getName, setDescription, setId, setNameMethods 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, eInvocationDelegate, eInvoke, 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 be.kuleuven.cs.distrinet.sparta.spartamodel.AttackerProfile
getContactFrequency, getInsider, getProbabilityOfAction, getThreatCapability, isEnabled, setContactFrequency, setEnabled, setProbabilityOfAction, setThreatCapabilityMethods 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 org.eclipse.emf.ecore.InternalEObject
eNotificationRequiredMethods inherited from interface be.kuleuven.cs.distrinet.sparta.spartamodel.ModelElement
getAnnotations, getDescription, getId, getName, setDescription, setId, setNameMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Constructor Details
-
Attacker
public Attacker(String name, double tcapMin, double tcapProb, double tcapMax, double tcapConf, double cfMin, double cfProb, double cfMax, double cfConf, double paMin, double paProb, double paMax, double paConf) Create a new attacker profile.- Parameters:
name- - the name of the attacker profile.tcapMin- - the minimum threat capability of the attacker.tcapProb- - the most probable threat capability of the attacker.tcapMax- - the maximum threat capability of the attacker.tcapConf- - the confidence threat capability of the attacker.cfMin- - the minimum contact frequency of the attacker.cfProb- - the most probable contact frequency of the attacker.cfMax- - the maximum contact frequency of the attacker.cfConf- - the confidence contact frequency of the attacker.paMin- - the minimum probability of action of the attacker.paProb- - the most probable probability of action of the attacker.paMax- - the maximum probability of action of the attacker.paConf- - the confidence probability of action of the attacker.
-
Attacker
Create a new attacker profile.
-
-
Method Details
-
minComparator
Get a comparator to sort the attackers according to the minimum of their threat capabilityEstimates.- Returns:
- the min-based comparator
-