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.
-
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.AttackerProfileImpl
enabled, ENABLED_EDEFAULT, insiderFields inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.ModelElementImpl
annotations, description, DESCRIPTION_EDEFAULT, id, ID_EDEFAULT, 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 TypeMethodDescriptionGet anEstimaterepresenting the contact frequency of the attacker profile.Get the list of elements for which this attacker profile is considered to be an insider.getName()Get the name of the attacker profile.Get anEstimaterepresenting the probability of action of the attacker profile.Get anEstimaterepresenting the threat capability of the attacker profile.static Comparator<Attacker> Get a comparator to sort the attackers according to the minimum of their threat capabilityEstimates.voidsetContactFrequency(Estimate contactFrequency) Set the contact frequency estimate of the attacker profile.voidSet the name of the attacker profile.voidsetProbabilityOfAction(Estimate probabilityOfAction) Set the probability of action estimate of the attacker profile.voidsetThreatCapability(Estimate threatCapability) Set the threat capability estimate of the attacker profile.Methods inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl
basicSetContactFrequency, basicSetProbabilityOfAction, basicSetThreatCapability, eGet, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, isEnabled, setEnabled, toStringMethods inherited from class be.kuleuven.cs.distrinet.sparta.spartamodel.impl.ModelElementImpl
getAnnotations, getDescription, getId, setDescription, setIdMethods 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
isEnabled, setEnabledMethods 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, setDescription, setIdMethods 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
-
setName
Set the name of the attacker profile.- Specified by:
setNamein interfaceModelElement- Overrides:
setNamein classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.ModelElementImpl- Parameters:
name- the new value of the 'Name' attribute.- See Also:
-
getName
Get the name of the attacker profile.- Specified by:
getNamein interfaceModelElement- Overrides:
getNamein classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.ModelElementImpl- Returns:
- the value of the 'Name' attribute.
- See Also:
-
getThreatCapability
Get anEstimaterepresenting the threat capability of the attacker profile.- Specified by:
getThreatCapabilityin interfaceAttackerProfile- Overrides:
getThreatCapabilityin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Returns:
- the value of the 'Threat Capability' containment reference.
- See Also:
-
setThreatCapability
Set the threat capability estimate of the attacker profile.- Specified by:
setThreatCapabilityin interfaceAttackerProfile- Overrides:
setThreatCapabilityin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Parameters:
threatCapability- the new value of the 'Threat Capability' containment reference.- See Also:
-
getContactFrequency
Get anEstimaterepresenting the contact frequency of the attacker profile.- Specified by:
getContactFrequencyin interfaceAttackerProfile- Overrides:
getContactFrequencyin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Returns:
- the value of the 'Contact Frequency' containment reference.
- See Also:
-
setContactFrequency
Set the contact frequency estimate of the attacker profile.- Specified by:
setContactFrequencyin interfaceAttackerProfile- Overrides:
setContactFrequencyin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Parameters:
contactFrequency- the new value of the 'Contact Frequency' containment reference.- See Also:
-
getProbabilityOfAction
Get anEstimaterepresenting the probability of action of the attacker profile.- Specified by:
getProbabilityOfActionin interfaceAttackerProfile- Overrides:
getProbabilityOfActionin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Returns:
- the value of the 'Probability Of Action' containment reference.
- See Also:
-
setProbabilityOfAction
Set the probability of action estimate of the attacker profile.- Specified by:
setProbabilityOfActionin interfaceAttackerProfile- Overrides:
setProbabilityOfActionin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Parameters:
probabilityOfAction- the new value of the 'Probability Of Action' containment reference.- See Also:
-
minComparator
Get a comparator to sort the attackers according to the minimum of their threat capabilityEstimates.- Returns:
- the min-based comparator
-
getInsider
Get the list of elements for which this attacker profile is considered to be an insider. This list if empty by default in this custom attacker profile implementation.- Specified by:
getInsiderin interfaceAttackerProfile- Overrides:
getInsiderin classbe.kuleuven.cs.distrinet.sparta.spartamodel.impl.AttackerProfileImpl- Returns:
- the value of the 'Insider' reference list.
- See Also:
-