/[xulu]/trunk.bakup/src/appl/parallel/test/PingTestObject.java
ViewVC logotype

Annotation of /trunk.bakup/src/appl/parallel/test/PingTestObject.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (hide annotations)
Wed Feb 10 16:14:27 2010 UTC (14 years, 10 months ago) by alfonx
File size: 457 byte(s)
backup of trunk
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