-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'async' into flank-protection
- Loading branch information
Showing
17 changed files
with
680 additions
and
141 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
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
from .occupancystate import OccupancyState | ||
from yaramo.model import Signal as YaramoSignal | ||
|
||
|
||
class Signal(object): | ||
|
||
def __init__(self, yaramo_signal): | ||
def __init__(self, yaramo_signal: YaramoSignal): | ||
from interlocking.model import Track | ||
|
||
self.yaramo_signal = yaramo_signal | ||
self.signal_aspect: str = "undefined" # Either halt or go | ||
self.state: OccupancyState = OccupancyState.FREE | ||
self.used_by = set() # If point is reserved, occupied or part of an overlap, this contains the train numbers. | ||
self.track = None | ||
self.track: Track or None = None |
Oops, something went wrong.