package de.ugoe.cs.eventbench.efg.data; import de.ugoe.cs.eventbench.data.IReplayable; 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 EFGReplayable 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 EFGReplayable}. *

* * @param eventId */ public EFGReplayable(String eventId) { this.eventId = eventId; } /* * (non-Javadoc) * * @see de.ugoe.cs.eventbench.data.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.eventbench.data.IReplayable#getTarget() */ @Override public String getTarget() { return null; // target indirectly included in replay through the eventId } }