org.gscg.singleuser.interactionlayer.dataobjects
Class DateIntData
java.lang.Object
org.gscg.singleuser.interactionlayer.dataobjects.DateIntData
- All Implemented Interfaces:
- java.io.Serializable
- public class DateIntData
- extends java.lang.Object
- implements java.io.Serializable
The DateIntData object takes care of parsing the data in the form of days,
months and years into a DateFormat, or vice versa, taken into account the
starttime of the simulator. It is used by a number of content related data
objects in order to easily calculate the date as a string.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
- Since:
- 1.0.0
- Version:
- $Revision: 1.1 $ $Date: 2005/06/16 12:34:00 $
- Author:
- Alexander
Verbraeck
- See Also:
- Serialized Form
Constructor Summary |
DateIntData(int year,
int month,
int day)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DateIntData
public DateIntData(int year,
int month,
int day)
- Parameters:
year
- the yearmonth
- the monthday
- the day
makeSimulationDate
public static double makeSimulationDate(DateIntData dateIntData,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
- Parameters:
dateIntData
- the date of a date in integerssimulator
- the simulator
- Returns:
- returns a double which reflects the simulator time
makeDateIntData
public static DateIntData makeDateIntData(double date,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
- Parameters:
date
- the datesimulator
- the simulator
- Returns:
- returns a DateIntData object
getDay
public int getDay()
- Returns:
- Returns the day.
getMonth
public int getMonth()
- Returns:
- Returns the month.
getYear
public int getYear()
- Returns:
- Returns the year.
toString
public java.lang.String toString()
- See Also:
Object.toString()
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.