Class SDReconfigurationNotificationReceiver<Activity,ActivityNode,ActivityEdge,StoryPattern,StoryPatternObject,StoryPatternLink,Classifier,Feature,Expression>
- java.lang.Object
-
- org.palladiosimulator.simulizar.reconfiguration.storydiagram.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.
-
-
Constructor Summary
Constructors Constructor Description SDReconfigurationNotificationReceiver(de.mdelab.sdm.interpreter.core.facade.MetamodelFacadeFactory<Activity,ActivityNode,ActivityEdge,StoryPattern,StoryPatternObject,StoryPatternLink,Classifier,Feature,Expression> facadeFactory)
SDReconfigurationNotificationReceiver(de.mdelab.sdm.interpreter.core.facade.MetamodelFacadeFactory<Activity,ActivityNode,ActivityEdge,StoryPattern,StoryPatternObject,StoryPatternLink,Classifier,Feature,Expression> facadeFactory, OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applicationSuccessful()
Provides the success state of a StoryDiagram reconfiguration rule application.void
notifyChanged(de.mdelab.sdm.interpreter.core.notifications.InterpreterNotification<Classifier> notification)
void
reset()
Call reset before executing a new reconfiguration rule.void
storyPatternMatchingFailed(de.mdelab.sdm.interpreter.core.notifications.StoryPatternMatchingFailedNotification<StoryPattern,Classifier> notification)
void
storyPatternMatchingSuccessful(de.mdelab.sdm.interpreter.core.notifications.StoryPatternMatchingSuccessfulNotification<StoryPattern,Classifier> notification)
-
-
-
Constructor Detail
-
SDReconfigurationNotificationReceiver
public SDReconfigurationNotificationReceiver(de.mdelab.sdm.interpreter.core.facade.MetamodelFacadeFactory<Activity,ActivityNode,ActivityEdge,StoryPattern,StoryPatternObject,StoryPatternLink,Classifier,Feature,Expression> facadeFactory, OutputStream outputStream)
-
SDReconfigurationNotificationReceiver
public SDReconfigurationNotificationReceiver(de.mdelab.sdm.interpreter.core.facade.MetamodelFacadeFactory<Activity,ActivityNode,ActivityEdge,StoryPattern,StoryPatternObject,StoryPatternLink,Classifier,Feature,Expression> facadeFactory)
-
-
Method Detail
-
notifyChanged
public void notifyChanged(de.mdelab.sdm.interpreter.core.notifications.InterpreterNotification<Classifier> notification)
- Specified by:
notifyChanged
in interfacede.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.
-
-