Ejemplo n.º 1
0
        public void setCarRealTimeInfo(UInt16 car_id, UInt16 action_mode, UInt16 cst_exist, UInt16 current_section_id, UInt32 current_address_id,
                                       UInt32 buffer_distance, UInt16 speed)
        {
            MTSValueDefMapActionNew mapAction = getExcuteMapAction();

            if (mapAction != null)
            {
                mapAction.CarRealtimeInfo(car_id, action_mode, cst_exist, current_section_id, current_address_id, buffer_distance, speed);
            }
            else
            {
                getExcuteMapActionNew().CarRealtimeInfo(car_id, action_mode, cst_exist, current_section_id, current_address_id, buffer_distance, speed);;
            }
            //getExcuteMapAction().CarRealtimeInfo(car_id, action_mode, cst_exist, current_section_id, current_address_id, buffer_distance, speed);
        }
Ejemplo n.º 2
0
        public (bool isSendSuccess, UInt16 returnCode) carOutRequest(UInt16 carNum)
        {
            //return getExcuteMapAction().OHxC_CarOutNotify(carNum,1);

            MTSValueDefMapActionNew mapAction = getExcuteMapAction();

            if (mapAction != null)
            {
                return(mapAction.OHxC_CarOutNotify(carNum, 1));
            }
            else
            {
                return(getExcuteMapActionNew().OHxC_CarOutNotify(carNum, 1));
            }
        }
Ejemplo n.º 3
0
        public bool SetCarInMoving(bool onOff)
        {
            //return getExcuteMapAction().setOHxC2MTL_CarInMoving(onOff);


            MTSValueDefMapActionNew mapAction = getExcuteMapAction();

            if (mapAction != null)
            {
                return(mapAction.setOHxC2MTL_CarInMoving(onOff));
            }
            else
            {
                return(getExcuteMapActionNew().setOHxC2MTL_CarInMoving(onOff));
            }
        }