-
Notifications
You must be signed in to change notification settings - Fork 0
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 #102 from asmithie13/Redo_PLC_#98
Redo plc #98
- Loading branch information
Showing
8 changed files
with
176 additions
and
244 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
OCCUPIED C | ||
SWITCH A5 B6 | ||
LIGHT !C11 | ||
SwitchOcc or not SwitchRightOcc | ||
SWITCH | ||
|
||
OCCUPIED !C | ||
SWITCH A5 C11 | ||
LIGHT C11 | ||
SwitchOcc or SwitchRightOcc | ||
CurrentLIGHT | ||
|
||
SwitchOcc | ||
LeftLIGHT | ||
|
||
not SwitchOcc and SwitchRightOcc | ||
RightLIGHT |
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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,12 +1,17 @@ | ||
# Define the Block class | ||
class Block: | ||
def __init__(self, light, crossing, switch, state,occupied,id,speedLimit,authority): | ||
self.LIGHT = light | ||
self.CROSSING = crossing | ||
self.SWITCH = switch | ||
self.state = state | ||
self.occupied = occupied | ||
def __init__(self, lineColor, blockSection, blockNum, hasLight, hasCrossing, hasSwitch, lightState, crossingState, switchState,id,speedLimit): | ||
self.lineColor = lineColor | ||
self.blockSection = blockSection | ||
self.blockNum = blockNum | ||
self.LIGHT = hasLight | ||
self.CROSSING = hasCrossing | ||
self.SWITCH = hasSwitch | ||
self.lightState = lightState | ||
self.crossingState = crossingState | ||
self.switchState = switchState | ||
self.occupied = False | ||
self.ID = id | ||
self.speedLimit = speedLimit | ||
self.authority = authority | ||
self.authority = None | ||
|
Binary file not shown.
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,77 +1,77 @@ | ||
Line,Section,Block Number,Block Length (m),Block Grade (%),Speed Limit (Km/Hr),Infrastructure,Station Side,ELEVATION (M),CUMALTIVE ELEVATION (M) | ||
Red,A,1,50,0.5,40,Light,,0.25,0.25 | ||
Red,A,2,50,1,40,,,0.50,0.75 | ||
Red,A,3,50,1.5,40,,,0.75,1.50 | ||
Red,B,4,50,2,40,Light,,1.00,2.50 | ||
Red,A,1,50,0.5,40,,,0.25,0.25 | ||
Red,A,2,50,1,40,,,0.5,0.75 | ||
Red,A,3,50,1.5,40,,,0.75,1.5 | ||
Red,B,4,50,2,40,,,1,2.5 | ||
Red,B,5,50,1.5,40,,,0.75,3.25 | ||
Red,B,6,50,1,40,,,0.50,3.75 | ||
Red,B,6,50,1,40,,,0.5,3.75 | ||
Red,C,7,75,0.5,40,STATION: SHADYSIDE,Left/Right,0.38,4.13 | ||
Red,C,8,75,0,40,Light,,0.00,4.13 | ||
Red,C,9,75,0,40,SWITCH TO/FROM YARD (75-yard),,0.00,4.13 | ||
Red,D,10,75,0,40,Light,,0.00,4.13 | ||
Red,C,8,75,0,40,,,0,4.13 | ||
Red,C,9,75,0,40,,,0,4.13 | ||
Red,D,10,75,0,40,,,0,4.13 | ||
Red,D,11,75,-0.5,40,RAILWAY CROSSING,,-0.38,3.75 | ||
Red,D,12,75,-1,40,,,-0.75,3.00 | ||
Red,E,13,70,-2,40,Light,,-1.40,1.60 | ||
Red,D,12,75,-1,40,,,-0.75,3 | ||
Red,E,13,70,-2,40,,,-1.4,1.6 | ||
Red,E,14,60,-1.25,40,,,-0.75,0.85 | ||
Red,E,15,60,-1,40,SWITCH (15-16; 1-16),,-0.60,0.25 | ||
Red,F,16,50,-0.5,40,STATION: HERRON AVE,Left/Right,-0.25,0.00 | ||
Red,F,17,200,-0.5,55,Light,,-1.00,-1.00 | ||
Red,E,15,60,-1,40,SWITCH (15-16; 15-1),,-0.6,0.25 | ||
Red,F,16,50,-0.5,40,STATION: HERRON AVE,Left/Right,-0.25,0 | ||
Red,F,17,200,-0.5,55,,,-1,-1 | ||
Red,F,18,400,-0.06025,70,,,-0.24,-1.24 | ||
Red,F,19,400,0,70,,,0.00,-1.24 | ||
Red,F,20,200,0,70,,,0.00,-1.24 | ||
Red,G,21,100,0,55,STATION; SWISSVILLE,Left/Right,0.00,-1.24 | ||
Red,G,22,100,0,55,Light,,0.00,-1.24 | ||
Red,G,23,100,0,55,,,0.00,-1.24 | ||
Red,H,24,50,0,70,Light,,0.00,-1.24 | ||
Red,H,25,50,0,70,STATION; PENN STATION; UNDERGROUND,Left/Right,0.00,-1.24 | ||
Red,H,26,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,27,50,0,70,SWITCH (27-28; 27-76); UNDERGROUND,,0.00,-1.24 | ||
Red,H,28,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,29,60,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,30,60,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,31,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,32,50,0,70,SWITCH (32-33; 33-72); UNDERGROUND,,0.00,-1.24 | ||
Red,H,33,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,34,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,35,50,0,70,STATION; STEEL PLAZA; UNDERGROUND,Left/Right,0.00,-1.24 | ||
Red,H,36,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,37,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,38,50,0,70,SWITCH (38-39; 38-71); UNDERGROUND,,0.00,-1.24 | ||
Red,H,39,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,40,60,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,41,60,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,42,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,43,50,0,70,SWITCH (43-44; 44-67); UNDERGROUND,,0.00,-1.24 | ||
Red,H,44,50,0,70,UNDERGROUND,,0.00,-1.24 | ||
Red,H,45,50,0,70,STATION; FIRST AVE; UNDERGROUND,Left/Right,0.00,-1.24 | ||
Red,I,46,75,0,70,Light,,0.00,-1.24 | ||
Red,I,47,75,0,70,RAILWAY CROSSING,,0.00,-1.24 | ||
Red,I,48,75,0,70,STATION; STATION SQUARE,Left/Right,0.00,-1.24 | ||
Red,J,49,50,0,60,Light,,0.00,-1.24 | ||
Red,J,50,50,0,60,,,0.00,-1.24 | ||
Red,J,51,50,0,55,,,0.00,-1.24 | ||
Red,J,52,43.2,0,55,SWITCH (52-53; 52-66),,0.00,-1.24 | ||
Red,J,53,50,0,55,,,0.00,-1.24 | ||
Red,J,54,50,0,55,,,0.00,-1.24 | ||
Red,K,55,75,0.5,55,Light,,0.38,-0.87 | ||
Red,F,19,400,0,70,,,0,-1.24 | ||
Red,F,20,200,0,70,,,0,-1.24 | ||
Red,G,21,100,0,55,STATION; SWISSVILLE,Left/Right,0,-1.24 | ||
Red,G,22,100,0,55,,,0,-1.24 | ||
Red,G,23,100,0,55,,,0,-1.24 | ||
Red,H,24,50,0,70,,,0,-1.24 | ||
Red,H,25,50,0,70,STATION; PENN STATION; UNDERGROUND,Left/Right,0,-1.24 | ||
Red,H,26,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,27,50,0,70,SWITCH (27-28; 27-76); UNDERGROUND,,0,-1.24 | ||
Red,H,28,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,29,60,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,30,60,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,31,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,32,50,0,70,SWITCH (32-33; 32-72); UNDERGROUND,,0,-1.24 | ||
Red,H,33,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,34,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,35,50,0,70,STATION; STEEL PLAZA; UNDERGROUND,Left/Right,0,-1.24 | ||
Red,H,36,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,37,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,38,50,0,70,SWITCH (38-39; 38-71); UNDERGROUND,,0,-1.24 | ||
Red,H,39,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,40,60,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,41,60,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,42,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,43,50,0,70,SWITCH (43-44; 43-67); UNDERGROUND,,0,-1.24 | ||
Red,H,44,50,0,70,UNDERGROUND,,0,-1.24 | ||
Red,H,45,50,0,70,STATION; FIRST AVE; UNDERGROUND,Left/Right,0,-1.24 | ||
Red,I,46,75,0,70,,,0,-1.24 | ||
Red,I,47,75,0,70,RAILWAY CROSSING,,0,-1.24 | ||
Red,I,48,75,0,70,STATION; STATION SQUARE,Left/Right,0,-1.24 | ||
Red,J,49,50,0,60,,,0,-1.24 | ||
Red,J,50,50,0,60,,,0,-1.24 | ||
Red,J,51,50,0,55,,,0,-1.24 | ||
Red,J,52,43.2,0,55,SWITCH (52-53; 52-66),,0,-1.24 | ||
Red,J,53,50,0,55,,,0,-1.24 | ||
Red,J,54,50,0,55,,,0,-1.24 | ||
Red,K,55,75,0.5,55,,,0.38,-0.87 | ||
Red,K,56,75,0.5,55,,,0.38,-0.49 | ||
Red,K,57,75,0.5,55,,,0.38,-0.12 | ||
Red,L,58,75,1,55,Light,,0.75,0.63 | ||
Red,L,58,75,1,55,,,0.75,0.63 | ||
Red,L,59,75,0.5,55,,,0.38,1.01 | ||
Red,L,60,75,0,55,STATION; SOUTH HILLS JUNCTION,Left/Right,0.00,1.01 | ||
Red,M,61,75,-0.5,55,Light,,-0.38,0.63 | ||
Red,L,60,75,0,55,STATION; SOUTH HILLS JUNCTION,Left/Right,0,1.01 | ||
Red,M,61,75,-0.5,55,,,-0.38,0.63 | ||
Red,M,62,75,-1,55,,,-0.75,-0.12 | ||
Red,M,63,75,-1,55,,,-0.75,-0.87 | ||
Red,N,64,75,-0.5,55,Light,,-0.38,-1.24 | ||
Red,N,65,75,0,55,,,0.00,-1.24 | ||
Red,N,66,75,0,55,,,0.00,-1.24 | ||
Red,O,67,50,0,55,Light,,0.00,-1.24 | ||
Red,P,68,50,0,55,Light,,0.00,-1.24 | ||
Red,P,69,50,0,55,UNDERGROUND,,0.00,-1.24 | ||
Red,P,70,50,0,55,UNDERGROUND,,0.00,-1.24 | ||
Red,Q,71,50,0,55,Light,,0.00,-1.24 | ||
Red,R,72,50,0,55,Light,,0.00,-1.24 | ||
Red,S,73,50,0,55,Light,,0.00,-1.24 | ||
Red,S,74,50,0,55,UNDERGROUND,,0.00,-1.24 | ||
Red,S,75,50,0,55,UNDERGROUND,,0.00,-1.24 | ||
Red,T,76,50,0,55,Light,,0.00,-1.24 | ||
Red,N,64,75,-0.5,55,,,-0.38,-1.24 | ||
Red,N,65,75,0,55,,,0,-1.24 | ||
Red,N,66,75,0,55,,,0,-1.24 | ||
Red,O,67,50,0,55,,,0,-1.24 | ||
Red,P,68,50,0,55,,,0,-1.24 | ||
Red,P,69,50,0,55,UNDERGROUND,,0,-1.24 | ||
Red,P,70,50,0,55,UNDERGROUND,,0,-1.24 | ||
Red,Q,71,50,0,55,,,0,-1.24 | ||
Red,R,72,50,0,55,,,0,-1.24 | ||
Red,S,73,50,0,55,,,0,-1.24 | ||
Red,S,74,50,0,55,UNDERGROUND,,0,-1.24 | ||
Red,S,75,50,0,55,UNDERGROUND,,0,-1.24 | ||
Red,T,76,50,0,55,,,0,-1.24 |
Oops, something went wrong.