Class SDReconfigurationNotificationReceiver<Activity,​ActivityNode,​ActivityEdge,​StoryPattern,​StoryPatternObject,​StoryPatternLink,​Classifier,​Feature,​Expression>

  • Type Parameters:
    Activity -
    ActivityNode -
    ActivityEdge -
    StoryPattern -
    StoryPatternObject -
    StoryPatternLink -
    Classifier -
    Feature -
    Expression -
    All Implemented Interfaces:
    de.mdelab.sdm.interpreter.core.notifications.NotificationReceiver<Classifier>

    public class SDReconfigurationNotificationReceiver<Activity,​ActivityNode,​ActivityEdge,​StoryPattern,​StoryPatternObject,​StoryPatternLink,​Classifier,​Feature,​Expression>
    extends Object
    implements de.mdelab.sdm.interpreter.core.notifications.NotificationReceiver<Classifier>
    NotificationReceiver that receives notifications of the StoryDiagram Interpreter and provides information about whether a reconfiguration rule was successfully applied or not.
    • Method Detail

      • notifyChanged

        public void notifyChanged​(de.mdelab.sdm.interpreter.core.notifications.InterpreterNotification<Classifier> notification)
        Specified by:
        notifyChanged in interface de.mdelab.sdm.interpreter.core.notifications.NotificationReceiver<Activity>
      • storyPatternMatchingSuccessful

        public void storyPatternMatchingSuccessful​(de.mdelab.sdm.interpreter.core.notifications.StoryPatternMatchingSuccessfulNotification<StoryPattern,​Classifier> notification)
      • storyPatternMatchingFailed

        public void storyPatternMatchingFailed​(de.mdelab.sdm.interpreter.core.notifications.StoryPatternMatchingFailedNotification<StoryPattern,​Classifier> notification)
      • applicationSuccessful

        public boolean applicationSuccessful()
        Provides the success state of a StoryDiagram reconfiguration rule application.
        Returns:
        Returns true if the StoryDiagram reconfiguration rule was successfully applied, i.e., all StoryPatterns within the StoryDiagram were matched successfully.
      • reset

        public void reset()
        Call reset before executing a new reconfiguration rule. Resets the success state.