001/**
002 * Copyright (C) 2014  Universidade de Aveiro, DETI/IEETA, Bioinformatics Group - http://bioinformatics.ua.pt/
003 *
004 * This file is part of Dicoogle/dicoogle.
005 *
006 * Dicoogle/dicoogle is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 *
011 * Dicoogle/dicoogle is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014 * GNU General Public License for more details.
015 *
016 * You should have received a copy of the GNU General Public License
017 * along with Dicoogle.  If not, see <http://www.gnu.org/licenses/>.
018 */
019/*
020 * To change this template, choose Tools | Templates
021 * and open the template in the editor.
022 */
023
024package pt.ua.dicoogle.DicomLog;
025
026import java.io.Serializable;
027import java.text.DateFormat;
028import java.text.SimpleDateFormat;
029import java.util.Date;
030
031/**
032 *
033 * @author Luís A. Bastião Silva <bastiao@ua.pt>
034 */
035public class LogLine implements Serializable
036{
037    static final long serialVersionUID = 1L;
038
039    private String type;
040    private String date;
041    private String ae;
042    private String add;
043    private String params;
044
045    public LogLine(String type, String date, String ae, String add, String params)
046    {
047        this.type = type ; 
048        this.date = date ; 
049        this.ae = ae ; 
050        this.add = add ;
051        this.params = params;
052    }
053
054     public static String getDateTime() {
055        DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
056        Date date = new Date();
057        return dateFormat.format(date);
058    }
059
060
061
062    /**
063     * @return the type
064     */
065    public String getType()
066    {
067        return type;
068    }
069
070    /**
071     * @param type the type to set
072     */
073    public void setType(String type)
074    {
075        this.type = type;
076    }
077
078    /**
079     * @return the date
080     */
081    public String getDate()
082    {
083        return date;
084    }
085
086    /**
087     * @param date the date to set
088     */
089    public void setDate(String date)
090    {
091        this.date = date;
092    }
093
094    /**
095     * @return the ae
096     */
097    public String getAe()
098    {
099        return ae;
100    }
101
102    /**
103     * @param ae the ae to set
104     */
105    public void setAe(String ae)
106    {
107        this.ae = ae;
108    }
109
110    /**
111     * @return the add
112     */
113    public String getAdd()
114    {
115        return add;
116    }
117
118    /**
119     * @param add the add to set
120     */
121    public void setAdd(String add)
122    {
123        this.add = add;
124    }
125
126
127    public String getParams() {
128        return params;
129    }
130
131    public void setParams(String params) {
132        this.params = params;
133    }
134}