|
|
@ -17,6 +17,7 @@ import (
|
|
|
|
type SignalDirection int
|
|
|
|
type SignalDirection int
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
StopSignalType SignalType = "STOP"
|
|
|
|
StopSignalType SignalType = "STOP"
|
|
|
|
|
|
|
|
NewSignalType = "NEW"
|
|
|
|
StartSignalType = "START"
|
|
|
|
StartSignalType = "START"
|
|
|
|
ErrorSignalType = "ERROR"
|
|
|
|
ErrorSignalType = "ERROR"
|
|
|
|
StatusSignalType = "STATUS"
|
|
|
|
StatusSignalType = "STATUS"
|
|
|
@ -140,6 +141,7 @@ func NewDirectSignal(signal_type SignalType) BaseSignal {
|
|
|
|
return NewBaseSignal(signal_type, Direct)
|
|
|
|
return NewBaseSignal(signal_type, Direct)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NewSignal = NewDirectSignal(NewSignalType)
|
|
|
|
var StartSignal = NewDirectSignal(StartSignalType)
|
|
|
|
var StartSignal = NewDirectSignal(StartSignalType)
|
|
|
|
var StopSignal = NewDownSignal(StopSignalType)
|
|
|
|
var StopSignal = NewDownSignal(StopSignalType)
|
|
|
|
|
|
|
|
|
|
|
|