Story class containing passages and links
Is your feature related to a problem? Please describe.
A containment of several passages connected with links. To find the first opening passage, this has to be an attribute of the class. Two stories are equal if their titles are equal. Create tests to both describe how the functionality should behave and for trust in the code.
Describe the solution you'd like.
The image below suggests an implementation of the class. A hashmap connects links to passages. Use aggregation for passage as the openingPassage is also in the passages map. When a passages is added to the story, a link is created where the reference attribute to the link is set to the title of the passage.
Edited by Carl Gützkow