source: trunk/EventBenchCore/src/de/ugoe/cs/eventbench/IReplayDecorator.java @ 106

Last change on this file since 106 was 106, checked in by sherbold, 13 years ago
  • code documentation
  • Property svn:mime-type set to text/plain
File size: 1018 bytes
Line 
1package de.ugoe.cs.eventbench;
2
3import java.io.Serializable;
4
5/**
6 * <p>
7 * This interface defines the structure of decorators used when writing replay
8 * files.
9 * </p>
10 *
11 * @author Steffen Herbold
12 * @version 1.0
13 */
14public interface IReplayDecorator extends Serializable {
15
16        /**
17         * <p>
18         * Header of the file. Called at the beginning of the writing.
19         * </p>
20         *
21         * @return file header
22         */
23        String getHeader();
24
25        /**
26         * <p>
27         * Footer of the file. Called at the end of the writing.
28         * </p>
29         *
30         * @return file footer
31         */
32        String getFooter();
33
34        /**
35         * <p>
36         * Session Header. Called before each session.
37         * </p>
38         *
39         * @param sessionId
40         *            id of the session
41         * @return session header
42         */
43        String getSessionHeader(int sessionId);
44
45        /**
46         * <p>
47         * Session Footer. Called after each session.
48         * </p>
49         *
50         * @param sessionId
51         *            id of the session
52         * @return session footer
53         */
54        String getSessionFooter(int sessionId);
55}
Note: See TracBrowser for help on using the repository browser.