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.

  • 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

      public Attacker(String name, Estimate tcap, Estimate cf, Estimate pa)
      Create a new attacker profile.
      Parameters:
      name - - the name of the attacker profile
      tcap - - an Estimate specifying the threat capability of the attacker.
      cf - - an Estimate specifying the contact frequency of the attacker.
      pa - - an Estimate specifying the probability of action of the attacker.
  • Method Details

    • minComparator

      public static Comparator<Attacker> minComparator()
      Get a comparator to sort the attackers according to the minimum of their threat capability Estimates.
      Returns:
      the min-based comparator