Class Scenario
- java.lang.Object
-
- pl.put.poznan.sqc.domain.scenario.Scenario
-
- All Implemented Interfaces:
StepCollection,Visitable
public class Scenario extends Object implements Visitable, StepCollection
A scenario that will be analysed by the application.It has a title, a list of actors (user- and system actors) and a list of steps that needs to be taken to perform the whole scenario.
Scenarios are analysed by Visitors. The way of accessing a scenario by a visitor is defined by the
Visitableinterface
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Disclose the data about the scenario to a visitor and pass it to the list of steps.voidadd(Component item)Add a Component to the collection.ArrayList<String>getActors()Get the (user) actors in the scenario.ArrayList<Component>getSteps()Get the steps in the scenario.ArrayList<String>getSystemActors()Get the system actors in the scenario.StringgetTitle()Get the scenario's title.voidremove(Component item)Add a Component to the collection.
-
-
-
Method Detail
-
getTitle
public String getTitle()
Get the scenario's title.- Returns:
- title as a string
-
getActors
public ArrayList<String> getActors()
Get the (user) actors in the scenario.- Returns:
- actors as an array of strings
-
getSystemActors
public ArrayList<String> getSystemActors()
Get the system actors in the scenario.- Returns:
- system actors as an array of strings
-
accept
public void accept(Visitor visitor)
Disclose the data about the scenario to a visitor and pass it to the list of steps.
-
add
public void add(Component item)
Description copied from interface:StepCollectionAdd a Component to the collection.- Specified by:
addin interfaceStepCollection- Parameters:
item- Component to be added- See Also:
Component
-
remove
public void remove(Component item)
Description copied from interface:StepCollectionAdd a Component to the collection.- Specified by:
removein interfaceStepCollection- Parameters:
item- Component to be removed.- See Also:
Component
-
-