cif

package
v0.0.0-...-73876c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Association

type Association struct {
	TransactionType     string
	BaseUID             string
	AssocUID            string
	AssocStartDate      string
	AssocEndDate        string
	AssocDays           string
	AssocCat            string
	AssocDateInd        string
	AssocLocation       string
	BaseLocationSuffix  string
	AssocLocationSuffix string
	DiagramType         string
	AssociationType     string
	STPIndicator        string
}

type BasicLocation

type BasicLocation struct {
	Location string

	ScheduledArrivalTime string
	PublicArrivalTime    string

	ScheduledDepartureTime string
	PublicDepartureTime    string

	Platform string

	Activity string
}

type BasicSchedule

type BasicSchedule struct {
	TransactionType    string
	TrainUID           string
	DateRunsFrom       string
	DateRunsTo         string
	DaysRun            string
	BankHolidayRunning string
	TrainStatus        string
	TrainCategory      string
	TrainIdentity      string
	Headcode           string
	// CourseIndicator    string
	TrainServiceCode string
	// PortionID          string
	PowerType                string
	TimingLoad               string
	Speed                    string
	OperatingCharacteristics string
	SeatingClass             string
	Sleepers                 string
	Reservations             string
	ConnectionIndicator      string
	CateringCode             string
	// ServiceBranding string
	// Spare           string
	STPIndicator string
}

type BasicScheduleExtraDetails

type BasicScheduleExtraDetails struct {
	// TractionClass           string
	// UICCode                 string
	ATOCCode string
}

type ChangesEnRoute

type ChangesEnRoute struct {
	Location      string
	TrainCategory string
	TrainIdentity string
	Headcode      string
	// CourseIndicator string
	// ProfitCentreCode string
	// BusinessSector   string
	// PowerType        string
	// TimingLoad       string
	// Speed string
	// OperatingChars   string
	// TrainClass       string
	// Sleepers         string
	// Reservations     string
	ConnectIndicator string
}

type CommonInterfaceFormat

type CommonInterfaceFormat struct {
	TrainDefinitionSets []*TrainDefinitionSet
	Associations        []Association

	PhysicalStations []PhysicalStation
	StationAliases   []StationAlias

	TIPLOCToCrsMap map[string]string
}

func (*CommonInterfaceFormat) ConvertToCTDF

func (c *CommonInterfaceFormat) ConvertToCTDF() []*ctdf.Journey

func (*CommonInterfaceFormat) Import

func (c *CommonInterfaceFormat) Import(dataset datasets.DataSet, datasource *ctdf.DataSource) error

func (*CommonInterfaceFormat) ParseFile

func (c *CommonInterfaceFormat) ParseFile(reader io.Reader) error

func (*CommonInterfaceFormat) ParseMCA

func (c *CommonInterfaceFormat) ParseMCA(reader io.Reader)

func (*CommonInterfaceFormat) ParseMSN

func (c *CommonInterfaceFormat) ParseMSN(reader io.Reader)

type IntermediateLocation

type IntermediateLocation struct {
	Location               string
	ScheduledArrivalTime   string
	ScheduledDepartureTime string
	// ScheduledPass          string
	PublicArrivalTime   string
	PublicDepartureTime string
	Platform            string
	// Line                string
	// Path                string
	Activity string
}

type OriginLocation

type OriginLocation struct {
	Location               string
	ScheduledDepartureTime string
	PublicDepartureTime    string
	Platform               string
	// Line                   string
	// EngineeringAllowance   string
	// PathingAllowance       string
	Activity string
}

type PhysicalStation

type PhysicalStation struct {
	StationName                string
	CATEInterchangeStatus      string
	TIPLOCCode                 string
	MinorCRSCode               string
	CRSCode                    string
	OrdnanceSurveyGridRefEast  string
	OrdnanceSurveyGridRefNorth string
	MinimumChangeTime          string
}

type StationAlias

type StationAlias struct {
	StationName  string
	StationAlias string
}

type TerminatingLocation

type TerminatingLocation struct {
	Location             string
	ScheduledArrivalTime string
	PublicArrivalTime    string
	Platform             string
	Path                 string
	Activity             string
}

type TrainDefinitionSet

type TrainDefinitionSet struct {
	BasicSchedule             BasicSchedule
	BasicScheduleExtraDetails BasicScheduleExtraDetails
	OriginLocation            OriginLocation
	IntermediateLocations     []*IntermediateLocation
	ChangesEnRoute            []*ChangesEnRoute
	TerminatingLocation       TerminatingLocation
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL