bck
Alejandro Acuña
2024-11-11 f1cb4443aede6d4657bdc3396c8914d3a9f4fa93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
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("]");
    }
}