|
WSF
|
A singleton object used to maintain the start date and time of the simulation. More...
#include <WsfDateTime.hpp>
Public Member Functions | |
| WsfDateTime ()=default | |
| WsfDateTime (const WsfDateTime &)=default | |
| ~WsfDateTime ()=default | |
| bool | ProcessInput (UtInput &aInput) |
| Process simulation input commands 'start_date' and 'start_time'. | |
| double | GetJulianDate (int aYear, int aMonth, int aDay, double aSecondsPastMidnight) const |
| Return the Julian date (i.e.: the number of days since 12:00:00 UTC on 1 January 4713 B.C.). | |
| double | GetStartJulianDate () const |
| Return the Julian date of the start date and time. | |
| void | GetStartDate (int &aYear, int &aMonth, int &aDay) const |
| Get the start date of the simulation. | |
| void | GetStartTime (int &aHour, int &aMinute, double &aSecond) const |
| Get the start time as the number of hours, minutes and seconds past midnight of the start day. | |
| double | GetStartTime () const |
| Get the time as the number of seconds past midnight of the start day. | |
| const UtCalendar & | GetStartDateAndTime () const |
| Get the start date and time of the simulation. | |
| bool | SetStartDate (int aYear, int aMonth, int aDay) |
| Set the start date. | |
| bool | SetStartTime (int aHour, int aMinute, double aSecond) |
| Set the start time as the number of hours, minutes and seconds past midnight of the start day. | |
| bool | SetStartEpoch (double aEpoch) |
| Set the start time as the Epoch (year*1000 + day "." fractional day). | |
| void | SetCurrentDateAndTime () |
| bool | UsingSystemTime () const |
| Return whether this object was initialized with system / wall clock time. | |
| UtCalendar | GetCurrentTime (double aSimTime) const |
| void | GetCurrentTime (double aSimTime, UtCalendar &aCurrentTime) const |
Protected Member Functions | |
| WsfDateTime & | operator= (const WsfDateTime &aRhs)=delete |
| operator= declared but not defined to prevent use. | |
A singleton object used to maintain the start date and time of the simulation.
Year, month and day values are subject to the following constraints:
|
default |
Referenced by operator=(), and WsfDateTime().
|
default |
References WsfDateTime().
|
default |
| UtCalendar WsfDateTime::GetCurrentTime | ( | double | aSimTime | ) | const |
Returns the absolute time as a UtCalendar, given the current simulation time.
| aSimTime | The current simulation time, in seconds. |
Referenced by wsf::space::KinematicStateExtrapolation::Extrapolate(), WsfSpaceMoverBase::GetFutureLocationWCS(), WsfSolarTerminator::GetPlatformSolarIllumination(), UCI_Util::GetTimeStamp(), WsfOpticalEnvironment::Initialize(), WsfSpaceMoverBase::Initialize(), WsfExclusionSensorComponent::PostAttemptToDetect(), WsfMoonLOS_SensorComponent::PostAttemptToDetect(), WsfSolarElevationAtTargetSensorComponent::PostAttemptToDetect(), WsfSolarIlluminationComponent::PostAttemptToDetect(), WsfSpaceMoverBase::PreInitialize(), wsf::event::utils::PrintDateTime(), UT_DEFINE_SCRIPT_METHOD(), and ~WsfDateTime().
| void WsfDateTime::GetCurrentTime | ( | double | aSimTime, |
| UtCalendar & | aCurrentTime ) const |
This is an optimized implementation of GetCurrentTime.
| aSimTime | The current simulation time, in seconds. |
| aCurrentTime | (in/out) The time at aSimTime as a UtCalendar. |
References simTime.
| double WsfDateTime::GetJulianDate | ( | int | aYear, |
| int | aMonth, | ||
| int | aDay, | ||
| double | aSecondsPastMidnight ) const |
Return the Julian date (i.e.: the number of days since 12:00:00 UTC on 1 January 4713 B.C.).
| aYear | The year of interest. |
| aMonth | The month of interest. |
| aDay | The day of interest. |
| aSecondsPastMidnight | The number of seconds past midnight on the day of interest. |
Referenced by WsfL16::Interface::Initialize(), and ~WsfDateTime().
| void WsfDateTime::GetStartDate | ( | int & | aYear, |
| int & | aMonth, | ||
| int & | aDay ) const |
Get the start date of the simulation.
| aYear | The start year (output). |
| aMonth | The start month (output). |
| aDay | The start day (output). |
Referenced by WsfL16::Interface::Initialize(), and ~WsfDateTime().
| const UtCalendar & WsfDateTime::GetStartDateAndTime | ( | ) | const |
Get the start date and time of the simulation.
Referenced by WsfSpaceMoverBase::CreateKinematicModel(), WsfOrbitalScriptEvent::ExecuteEvent(), WsfOrbitalManeuver::GetTargetPropagatorPerception(), WsfAccessReport::Initialize(), WsfEclipseReport::Initialize(), WsfNORAD_SpaceMover::Initialize(), WsfOrbitalScriptEvent::Initialize(), WsfOrbitDeterminationKalmanFilter::Initialize(), WsfSpaceMover::Initialize(), WsfSpaceMoverBase::Initialize(), WsfIntegratingSpaceMover::Initialize2(), WsfSpaceMoverBase::Initialize2(), wsf::coverage::Coverage::PendingStart(), wsf::event::utilsCSV::PrintDateTime(), wsf::event::utils::PrintTrackData(), wsf::event::utilsCSV::PrintTrackData(), WsfSpaceMoverBase::Update(), UT_DEFINE_SCRIPT_METHOD(), and ~WsfDateTime().
| double WsfDateTime::GetStartJulianDate | ( | ) | const |
Return the Julian date of the start date and time.
Referenced by WsfL16::Interface::Initialize(), and ~WsfDateTime().
| double WsfDateTime::GetStartTime | ( | ) | const |
Get the time as the number of seconds past midnight of the start day.
| void WsfDateTime::GetStartTime | ( | int & | aHour, |
| int & | aMinute, | ||
| double & | aSecond ) const |
Get the start time as the number of hours, minutes and seconds past midnight of the start day.
| aHour | The start hour (output). |
| aMinute | The start minute (output). |
| aSecond | The start second (output). |
Referenced by ~WsfDateTime().
|
protecteddelete |
operator= declared but not defined to prevent use.
References WsfDateTime().
| bool WsfDateTime::ProcessInput | ( | UtInput & | aInput | ) |
Process simulation input commands 'start_date' and 'start_time'.
Referenced by ~WsfDateTime().
| void WsfDateTime::SetCurrentDateAndTime | ( | ) |
Referenced by ~WsfDateTime().
| bool WsfDateTime::SetStartDate | ( | int | aYear, |
| int | aMonth, | ||
| int | aDay ) |
Set the start date.
See the NOTE at the top of the file concerning the valid values.
| aYear | The year to which the date will be set. |
| aMonth | The month to which the date will be set. |
| aDay | The day to which the date will be set. |
Referenced by ~WsfDateTime().
| bool WsfDateTime::SetStartEpoch | ( | double | aEpoch | ) |
Set the start time as the Epoch (year*1000 + day "." fractional day).
| aEpoch | The epoch of the start time and date. |
Referenced by ~WsfDateTime().
| bool WsfDateTime::SetStartTime | ( | int | aHour, |
| int | aMinute, | ||
| double | aSecond ) |
Set the start time as the number of hours, minutes and seconds past midnight of the start day.
| aHour | The hour to which the time will be set. |
| aMinute | The minute to which the time will be set. |
| aSecond | The second to which the time will be set. |
Referenced by ~WsfDateTime().
| bool WsfDateTime::UsingSystemTime | ( | ) | const |
Return whether this object was initialized with system / wall clock time.
Referenced by ~WsfDateTime().