/[xulu]/branches/1.8-gt2-2.6/src/appl/parallel/test/PingTestObject.java
ViewVC logotype

Annotation of /branches/1.8-gt2-2.6/src/appl/parallel/test/PingTestObject.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Wed Feb 25 11:54:01 2009 UTC (15 years, 9 months ago) by mojays
Original Path: trunk/src/appl/parallel/test/PingTestObject.java
File size: 457 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN 
1 mojays 2 package appl.parallel.test;
2    
3     import java.io.Serializable;
4    
5     /**
6     * Simply constructs a object with a given size which can be used for pinging.
7     * @author Dominik Appl
8     */
9     public class PingTestObject implements Serializable {
10     byte[] data = null;
11    
12    
13     /**
14     * @param bytes pingobject size in bytes
15     */
16     public PingTestObject(int bytes)
17     {
18     data = new byte[bytes];
19     for (int i = 0; i < data.length; i++) {
20     data[i]=(byte) i;
21     }}
22    
23     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26