source: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/IReplayDecorator.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
  • Property svn:mime-type set to text/plain
File size: 1.6 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;
16
17import java.io.Serializable;
18
19/**
20 * <p>
21 * This interface defines the structure of decorators used when writing replay
22 * files.
23 * </p>
24 *
25 * @author Steffen Herbold
26 * @version 1.0
27 */
28public interface IReplayDecorator extends Serializable {
29
30        /**
31         * <p>
32         * Header of the file. Called at the beginning of the writing.
33         * </p>
34         *
35         * @return file header
36         */
37        String getHeader();
38
39        /**
40         * <p>
41         * Footer of the file. Called at the end of the writing.
42         * </p>
43         *
44         * @return file footer
45         */
46        String getFooter();
47
48        /**
49         * <p>
50         * Session Header. Called before each session.
51         * </p>
52         *
53         * @param sessionId
54         *            id of the session
55         * @return session header
56         */
57        String getSessionHeader(int sessionId);
58
59        /**
60         * <p>
61         * Session Footer. Called after each session.
62         * </p>
63         *
64         * @param sessionId
65         *            id of the session
66         * @return session footer
67         */
68        String getSessionFooter(int sessionId);
69}
Note: See TracBrowser for help on using the repository browser.