SectionNotice (API Reference)
Class SectionNotice
Explains an issue encountered in a Section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe notice code.The notice severity.The following propertyviolated_restrictionscontains the notice detail information. -
Constructor Summary
ConstructorsConstructorDescriptionSectionNotice(SectionNoticeCode code, NoticeSeverity severity) Creates a new instance. -
Method Summary
-
Field Details
-
code
The notice code.
-
severity
The notice severity.
-
violatedRestrictions
The following property
violated_restrictionscontains the notice detail information. Only three types of restrictions can have notice details: time dependent restriction, vehicle restriction and transport mode restriction. There is no one-to-one match of theSectionNotice.codeand these three restriction types. For example, ifSectionNotice.codeisSectionNoticeCode.VIOLATED_VEHICLE_RESTRICTION, then it can be either vehicle restriction or transport mode restriction. IfSectionNotice.codeisSectionNoticeCode.SEASONAL_CLOSURE, then it is time dependent restriction. If the section notice is none of the above-mentioned three types, then this will be an empty list.
-
-
Constructor Details
-
SectionNotice
Creates a new instance.
- Parameters:
code-The notice code.
severity-The notice severity.
-
-
Method Details