source: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/IReplayable.java @ 927

Last change on this file since 927 was 927, checked in by sherbold, 12 years ago
  • added copyright under the Apache License, Version 2.0
File size: 1.5 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.eventcore;
16
17import java.io.Serializable;
18
19import de.ugoe.cs.autoquest.IReplayDecorator;
20
21/**
22 * <p>
23 * This interface is used by {@link ReplayableEvent}to describe how events can
24 * be replayed. It can be used to define a sequence of fine-grained platform
25 * events that make up an abstract event.
26 * </p>
27 *
28 * @author Steffen Herbold
29 * @version 1.0
30 */
31public interface IReplayable extends Serializable {
32
33        /**
34         * <p>
35         * Returns a string to be written to the replay script that describes the
36         * replayable platform event.
37         * </p>
38         *
39         * @return string for the replay script
40         */
41        String getReplay();
42       
43        /**
44         * <p>
45         * Returns the replay decorator associated with the replayable. Returns null if no replay decorator is associated with the replayable.
46         * </p>
47         *
48         * @return replay decorator
49         */
50        IReplayDecorator getDecorator();
51}
Note: See TracBrowser for help on using the repository browser.