package de.ugoe.cs.quest.plugin.guitar.eventcore; import de.ugoe.cs.quest.IReplayDecorator; import de.ugoe.cs.quest.eventcore.IReplayable; import de.ugoe.cs.quest.plugin.guitar.EFGReplayDecorator; import de.ugoe.cs.util.StringTools; /** *

* {@link IReplayable} used to generate test cases for the GUITAR suite. *

* * @author Steffen Herbold * @version 1.0 */ public class GUITARReplayable implements IReplayable { /** *

* EventId in the EFG and GUI files. *

*/ String eventId; /** *

* Id for object serialization. *

*/ private static final long serialVersionUID = 1L; /** *

* Constructor. Creates a new {@link GUITARReplayable}. *

* * @param eventId */ public GUITARReplayable(String eventId) { this.eventId = eventId; } /* * (non-Javadoc) * * @see de.ugoe.cs.quest.eventcore.IReplayable#getReplay() */ @Override public String getReplay() { StringBuilder replay = new StringBuilder(); replay.append("" + StringTools.ENDLINE); replay.append("" + eventId + "" + StringTools.ENDLINE); replay.append("false" + StringTools.ENDLINE); replay.append("" + StringTools.ENDLINE); return replay.toString(); } /* * (non-Javadoc) * * @see de.ugoe.cs.quest.eventcore.IReplayable#getDecorator() */ @Override public IReplayDecorator getDecorator() { return EFGReplayDecorator.getInstance(); } }