Alarm#

class Alarm#

Represents an alarm. Obtained by calling alarms(), alarm_with_name() or alarms_with_type().

AlarmAction action()#
void set_action(AlarmAction value)#

The action that the alarm triggers.

double margin()#
void set_margin(double value)#

The number of seconds before the event that the alarm will fire.

double time()#
void set_time(double value)#

The time at which the alarm will fire.

AlarmType type()#

The type of the alarm.

std::string id()#

The unique identifier for the alarm.

std::string name()#
void set_name(std::string value)#

The short name of the alarm.

std::string notes()#
void set_notes(std::string value)#

The long description of the alarm.

double remaining()#

The number of seconds until the alarm will fire.

bool repeat()#
void set_repeat(bool value)#

Whether the alarm will be repeated after it has fired.

double repeat_period()#
void set_repeat_period(double value)#

The time delay to automatically create an alarm after it has fired.

SpaceCenter::Vessel vessel()#
void set_vessel(SpaceCenter::Vessel value)#

The vessel that the alarm is attached to.

SpaceCenter::CelestialBody xfer_origin_body()#
void set_xfer_origin_body(SpaceCenter::CelestialBody value)#

The celestial body the vessel is departing from.

SpaceCenter::CelestialBody xfer_target_body()#
void set_xfer_target_body(SpaceCenter::CelestialBody value)#

The celestial body the vessel is arriving at.

void remove()#

Removes the alarm.