AI-generated Key Takeaways
-
GMTDTaskInforepresents an immutable task object that will be completed at a vehicle stop. -
Each task has a unique
taskID, which is a string identifier for the task. -
Tasks are associated with a
taskDuration, representing the time required to complete the task. -
You can instantiate
GMTDTaskInfousing the designated initializer-initWithTaskID:taskDuration:, providing the task ID and duration. -
The default initializer
-initis unavailable and should be replaced with the-initWithTaskID:taskDuration:method.
GMTDTaskInfo
@interface GMTDTaskInfo : GMTSImmutableDataAn immutable object representing a task that will be completed at a vehicle stop.
-
The unique ID of the task.
Declaration
Swift
var taskID: String { get }Objective-C
@property (nonatomic, copy, readonly) GMTDFleetEngineIDString *_Nonnull taskID; -
The time required to perform the task.
Declaration
Swift
var taskDuration: TimeInterval { get }Objective-C
@property (nonatomic, readonly) NSTimeInterval taskDuration; -
Instantiates an instance of this class.
Declaration
Swift
init(taskID: String, taskDuration: TimeInterval)Objective-C
- (nonnull instancetype)initWithTaskID:(nonnull GMTDFleetEngineIDString *)taskID taskDuration:(NSTimeInterval)taskDuration;Parameters
taskIDThe ID of a task.
taskDurationThe time required to perform the task.
-
Unavailable
Use
-initWithTaskID:taskDuration:instead.Declaration
Objective-C
- (nonnull instancetype)init;