43 lines
833 B
TypeScript
43 lines
833 B
TypeScript
|
/**
|
||
|
* @author Martin Karkowski
|
||
|
* @email m.karkowski@zema.de
|
||
|
* @create date 2020-12-29 15:30:32
|
||
|
* @modify date 2020-12-30 11:34:25
|
||
|
* @desc [description]
|
||
|
*/
|
||
|
|
||
|
import { IWaMOLineDescription } from "../types/interfaces";
|
||
|
import {
|
||
|
STATION_05,
|
||
|
STATION_06,
|
||
|
STATION_07,
|
||
|
STATION_08,
|
||
|
UMSETZER_09,
|
||
|
UMSETZER_10,
|
||
|
UMSETZER_11
|
||
|
} from "./stations";
|
||
|
|
||
|
export const WAMO_HERSTELLER_LINIE: IWaMOLineDescription = {
|
||
|
elements: {},
|
||
|
name: "smartfit"
|
||
|
};
|
||
|
|
||
|
const line = [
|
||
|
UMSETZER_09,
|
||
|
STATION_05,
|
||
|
STATION_06,
|
||
|
STATION_08,
|
||
|
UMSETZER_10,
|
||
|
STATION_07,
|
||
|
UMSETZER_11
|
||
|
];
|
||
|
|
||
|
// Assing the Values. Manually
|
||
|
line.map((element) => (WAMO_HERSTELLER_LINIE.elements[element.id] = element));
|
||
|
line.map((id, idx) => {
|
||
|
const element = WAMO_HERSTELLER_LINIE.elements[id.id];
|
||
|
if (idx > 0) {
|
||
|
element.leftNeighbor = line[idx - 1].id;
|
||
|
}
|
||
|
});
|