[650][adas] NDE V2N事件:绿波通行(单路口)事件推送, 透传、行人横穿(路侧)事件推送, 透传、他车逆行(路侧)事件推送, 透传、拥堵事件推送, 透传;数据中心新增NDE相关接口
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package com.mogo.eagle.core.function.call.autopilot
|
||||
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoV2nNioEventListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import mogo.telematics.pad.MessagePad
|
||||
|
||||
/**
|
||||
*NDE 数据接口
|
||||
*/
|
||||
object CallerV2nNioEventListenerManager : CallerBase<IMoGoV2nNioEventListener>() {
|
||||
|
||||
/**
|
||||
* 绿波通行(单路口)事件推送, 透传
|
||||
*/
|
||||
fun invokeV2nNioGreenWavePassageEvent(crossSpeed: MessagePad.V2nCrossSpeed) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onV2nNioGreenWavePassageEvent(crossSpeed)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 行人横穿(路侧)事件推送, 透传
|
||||
*/
|
||||
fun invokeV2nNioCrossoverEvent(event: MessagePad.Event) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onV2nNioCrossoverEvent(event)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 他车逆行(路侧)事件推送, 透传
|
||||
*/
|
||||
fun invokeV2nNioOtherRetrogradeEvent(event: MessagePad.Event) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onV2nNioOtherRetrogradeEvent(event)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 拥堵事件推送, 透传
|
||||
*/
|
||||
fun invokeV2nNioCongestionEvent(congestion: MessagePad.V2nCongestion) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onV2nNioCongestionEvent(congestion)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user