A job to be performed by a resource.

NameTypeRequiredDescription
namestringtrueUnique description
durationintegerfalseService duration of the job
locationLocationfalseJob location
priorityintegerfalsePriority of the job will ensure that it is included in the planning over other lower priority jobs.
tags[Tag]falseA tag is a string that can be used to link jobs to resources.
windows[TimeWindow]falseList of start/end date/time combinations.
durationSquashintegerfalseWhen a job is performed at the same location as another job, durationSquash ensures that the 2nd job’ service time is reduced to this value. Example: duration=600 and durationSquash=30 means that the 2nd job will only take 30 seconds to perform.
plannedDatedatefalseFixed date on which this job is already planned and should hence be taken into account in the planning.
plannedResourcestringfalseName of the resource to which this job is already planned and should hence be taken into account in the next planning.
plannedArrivaldate-timefalsePlanned arrival time The second of day at which the job is planned to complete. The difference with the actual arrival time is scaled in the score with plannedWeight.
hardbooleanfalseIn the case of partial planning, this indicates whether this job should be integrated into the planning or not.
hardWeightintegerfalseIn the case of partial planning, this indicates the weight of this job.
paddingintegerfalsePadding time (in seconds) before and after the job.
allowedResources[string]falseResources that are allowed to be assigned to this job.
load[int]falseThe load of the job expressed as list of integer values

TimeWindow

A time window is a time period in which a job can be performed.

NameTypeRequiredDescription
fromdate-timetrueDate time start of window
todate-timetrueDate time end of window
weightintegerfalseWeight constraint modifier
hardbooleanfalseHard constraint violation of DateWindow

Tag

NameTypeRequiredDescription
namestringtrueTag restriction name which can force some Jobs to be scheduled by Resources with the same tag
hardbooleanfalseHard or soft constraint.
weightintegerfalseValue of the weight. This will be on the same level as travel time in the case of soft constraint.

Location

NameTypeRequiredDescription
latitudenumbertrueLatitude (WGS84)
longitudenumbertrueLongitude (WGS84)

A job to be performed by a resource.