|
package art.servers.etdserver.protocols.diamond.file;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
|
public class DIAMOND_RawData
|
{
|
public long timestamp;
|
public int carril;
|
public float velocidad; // km/h
|
public int longitud; // cm
|
public int longitudejes[] = new int[0]; // cm
|
public int ejes;
|
|
|
public void print()
|
{
|
SimpleDateFormat formato1 = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
System.out.print(formato1.format(new Date(timestamp)) + ", lane = " + carril + ", speed = " + velocidad + ", " + "length = " + longitud + " [ ");
|
|
for (int i=0; i<longitudejes.length; i++)
|
{
|
System.out.print(longitudejes[i]+" ");
|
}
|
|
// System.out.println("]");
|
}
|
}
|