-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #402 from kbss-cvut/feature/310-min-operational-hours
Feature/310 min operational hours
- Loading branch information
Showing
6 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import VocabularyUtils from "@utils/VocabularyUtils"; | ||
import { AbstractModel, CONTEXT as ABSTRACT_CONTEXT } from "@models/abstractModel"; | ||
|
||
const ctx = { | ||
minOperationalHours: VocabularyUtils.PREFIX + "min-operational-hours", | ||
}; | ||
|
||
export const CONTEXT = Object.assign({}, ctx, ABSTRACT_CONTEXT); | ||
|
||
export interface OperationalDataFilter extends AbstractModel { | ||
minOperationalHours: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import VocabularyUtils from "@utils/VocabularyUtils"; | ||
import { Component, CONTEXT as COMPONENT_CONTEXT } from "@models/componentModel"; | ||
import { AbstractModel, CONTEXT as ABSTRACT_CONTEXT } from "@models/abstractModel"; | ||
import { OperationalDataFilter, CONTEXT as FILTER_CONTEXT } from "@models/operationalDataFilterModel"; | ||
|
||
const ctx = { | ||
name: VocabularyUtils.PREFIX + "name", | ||
globalOperationalDataFilter: VocabularyUtils.PREFIX + "has-global-operational-data-filter", | ||
operationalDataFilter: VocabularyUtils.PREFIX + "has-operational-data-filter", | ||
components: VocabularyUtils.PREFIX + "has-part-component", | ||
}; | ||
|
||
export const CONTEXT = Object.assign({}, ctx, COMPONENT_CONTEXT, ABSTRACT_CONTEXT); | ||
export const CONTEXT = Object.assign({}, ctx, COMPONENT_CONTEXT, ABSTRACT_CONTEXT, FILTER_CONTEXT); | ||
|
||
export interface System extends AbstractModel { | ||
name: string; | ||
components?: Component[]; | ||
globalOperationalDataFilter: OperationalDataFilter; | ||
operationalDataFilter: OperationalDataFilter; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters