Ignore:
Timestamp:
09/09/11 06:23:36 (13 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/MFCReplayDecorator.java

    r98 r171  
    44import de.ugoe.cs.util.StringTools; 
    55 
     6/** 
     7 * <p> 
     8 * {@link IReplayDecorator} for replay generated for EventBench's MFCReplay tool. 
     9 * </p> 
     10 *  
     11 * @author Steffen Herbold 
     12 * @version 1.0 
     13 */ 
    614public class MFCReplayDecorator implements IReplayDecorator { 
    715 
    816        /** 
     17         * <p> 
    918         * Id for object serialization. 
     19         * </p> 
    1020         */ 
    1121        private static final long serialVersionUID = 1L; 
    12          
     22 
     23        /** 
     24         * <p> 
     25         * The instance of the {@link MFCReplayDecorator} (implemented as 
     26         * singleton). 
     27         * </p> 
     28         */ 
    1329        transient private static MFCReplayDecorator theInstance; 
    14          
    15         private MFCReplayDecorator() {}; 
    16          
     30 
     31        /** 
     32         * <p> 
     33         * Constructor. Private to guarantee that only one instance of the replay 
     34         * generator exists. 
     35         * </p> 
     36         */ 
     37        private MFCReplayDecorator() { 
     38        }; 
     39 
     40        /** 
     41         * <p> 
     42         * Returns the instance of the MFCReplayDecorator. 
     43         * </p> 
     44         *  
     45         * @return instance of the MFCReplayDecorator. 
     46         */ 
    1747        public static MFCReplayDecorator getInstance() { 
    18                 if( theInstance==null ) { 
     48                if (theInstance == null) { 
    1949                        theInstance = new MFCReplayDecorator(); 
    2050                } 
    2151                return theInstance; 
    2252        } 
    23          
     53 
     54        /* 
     55         * (non-Javadoc) 
     56         *  
     57         * @see de.ugoe.cs.eventbench.IReplayDecorator#getHeader() 
     58         */ 
    2459        @Override 
    2560        public String getHeader() { 
    26                 return "<?xml version=\"1.0\" encoding=\"UTF-16\"?>" + StringTools.ENDLINE + 
    27                           "<log>" + StringTools.ENDLINE; 
    28                  
     61                return "<?xml version=\"1.0\" encoding=\"UTF-16\"?>" 
     62                                + StringTools.ENDLINE + "<log>" + StringTools.ENDLINE; 
     63 
    2964        } 
    3065 
     66        /* 
     67         * (non-Javadoc) 
     68         *  
     69         * @see de.ugoe.cs.eventbench.IReplayDecorator#getFooter() 
     70         */ 
    3171        @Override 
    3272        public String getFooter() { 
     
    3474        } 
    3575 
     76        /* 
     77         * (non-Javadoc) 
     78         *  
     79         * @see de.ugoe.cs.eventbench.IReplayDecorator#getSessionHeader(int) 
     80         */ 
    3681        @Override 
    3782        public String getSessionHeader(int sessionId) { 
    38                 return " <session id=\""+sessionId+"\">" + StringTools.ENDLINE; 
     83                return " <session id=\"" + sessionId + "\">" + StringTools.ENDLINE; 
    3984        } 
    4085 
     86        /* 
     87         * (non-Javadoc) 
     88         *  
     89         * @see de.ugoe.cs.eventbench.IReplayDecorator#getSessionFooter(int) 
     90         */ 
    4191        @Override 
    4292        public String getSessionFooter(int sessionId) { 
    4393                return " </session>" + StringTools.ENDLINE; 
    4494        } 
    45          
    4695 
    4796} 
Note: See TracChangeset for help on using the changeset viewer.