001 package cnslab.cnsnetwork; 002 003 import java.io.*; 004 005 /*********************************************************************** 006 * An array of simulation progress times of each of the NetHosts 007 * corresponding to one trial host. 008 * 009 * @version 010 * $Date: 2012-08-04 13:43:22 -0500 (Sat, 04 Aug 2012) $ 011 * $Rev: 104 $ 012 * $Author: croft $ 013 * @author 014 * Yi Dong 015 * @author 016 * David Wallace Croft 017 ***********************************************************************/ 018 public final class NetTime 019 implements Serializable, Transmissible 020 //////////////////////////////////////////////////////////////////////// 021 //////////////////////////////////////////////////////////////////////// 022 { 023 024 private static final long serialVersionUID = 0L; 025 026 // 027 028 public final double [ ] localTime; 029 030 //////////////////////////////////////////////////////////////////////// 031 //////////////////////////////////////////////////////////////////////// 032 033 public NetTime ( final double [ ] localTime ) 034 //////////////////////////////////////////////////////////////////////// 035 { 036 this.localTime = localTime; 037 } 038 039 //////////////////////////////////////////////////////////////////////// 040 //////////////////////////////////////////////////////////////////////// 041 042 @Override 043 public String toString ( ) 044 //////////////////////////////////////////////////////////////////////// 045 { 046 String tmp = ""; 047 048 for ( int i = 0; i < localTime.length; i++ ) 049 { 050 tmp = tmp + " T" + i + " " + localTime [ i ] + " "; 051 } 052 053 return tmp; 054 } 055 056 //////////////////////////////////////////////////////////////////////// 057 //////////////////////////////////////////////////////////////////////// 058 }