Documentation ¶
Overview ¶
* ===========================================================================
- 双子服务示例
- Example Service Twins
===========================================================================
* ===========================================================================
- 双子服务示例
- Example Service Twins
===========================================================================
Index ¶
- type ExamplePublishS
- func (mExamplePublish *ExamplePublishS) BehaviorTreeAnalyze(commanderConn *websocket.Conn, messageId string, message64 string)
- func (mExamplePublish *ExamplePublishS) BehaviorTreeError(commanderConn *websocket.Conn, messageId string, message64 string)
- func (mExamplePublish *ExamplePublishS) IsStarted() bool
- func (mExamplePublish *ExamplePublishS) Log(title string, content ...interface{})
- func (mExamplePublish *ExamplePublishS) Ontology(neuron *frame.NeuronS, mux *http.ServeMux, root string) *ExamplePublishS
- func (mExamplePublish *ExamplePublishS) RemoteRequest2BTreeAnalyze(tree *model.BehaviorTreeS) *model.BehaviorTreeS
- func (mExamplePublish *ExamplePublishS) RemoteRequestAnalyze(commanderConn *websocket.Conn, messageId string, message64 string)
- func (mExamplePublish *ExamplePublishS) StartService()
- func (mExamplePublish *ExamplePublishS) StopService()
- type ExampleSubscribeS
- func (mExampleSubscribe *ExampleSubscribeS) BehaviorTreePush(receiverConn *websocket.Conn, messageId string, message64 string)
- func (mExampleSubscribe *ExampleSubscribeS) IsStarted() bool
- func (mExampleSubscribe *ExampleSubscribeS) Log(title string, content ...interface{})
- func (mExampleSubscribe *ExampleSubscribeS) Ontology(neuron *frame.NeuronS, mux *http.ServeMux, root string) *ExampleSubscribeS
- func (mExampleSubscribe *ExampleSubscribeS) RemoteRequest(receiverConn *websocket.Conn, messageId string, message64 string)
- func (mExampleSubscribe *ExampleSubscribeS) RemoteRequest2BTree(tree *model.BehaviorTreeS) *model.BehaviorTreeS
- func (mExampleSubscribe *ExampleSubscribeS) StartService()
- func (mExampleSubscribe *ExampleSubscribeS) StopService()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExamplePublishS ¶
type ExamplePublishS struct { Const struct { // contains filtered or unexported fields } Container struct { BehaviorForest model.BehaviorForestS } Connection struct{} StopChannel struct { // contains filtered or unexported fields } // contains filtered or unexported fields }
* ================================ DEFINE ================================ */
func (*ExamplePublishS) BehaviorTreeAnalyze ¶
func (mExamplePublish *ExamplePublishS) BehaviorTreeAnalyze(commanderConn *websocket.Conn, messageId string, message64 string)
* Commander -> 分析任务结果 */
func (*ExamplePublishS) BehaviorTreeError ¶
func (mExamplePublish *ExamplePublishS) BehaviorTreeError(commanderConn *websocket.Conn, messageId string, message64 string)
* Commander -> 收集错误信息 */
func (*ExamplePublishS) IsStarted ¶
func (mExamplePublish *ExamplePublishS) IsStarted() bool
* 返回开关量 */
func (*ExamplePublishS) Log ¶
func (mExamplePublish *ExamplePublishS) Log(title string, content ...interface{})
* 打印信息 */
func (*ExamplePublishS) Ontology ¶
func (mExamplePublish *ExamplePublishS) Ontology(neuron *frame.NeuronS, mux *http.ServeMux, root string) *ExamplePublishS
* 构造本体 */
func (*ExamplePublishS) RemoteRequest2BTreeAnalyze ¶
func (mExamplePublish *ExamplePublishS) RemoteRequest2BTreeAnalyze(tree *model.BehaviorTreeS) *model.BehaviorTreeS
* Behavior -> 分析远程请求 */
func (*ExamplePublishS) RemoteRequestAnalyze ¶
func (mExamplePublish *ExamplePublishS) RemoteRequestAnalyze(commanderConn *websocket.Conn, messageId string, message64 string)
* Commander -> 分析远程请求 */
func (*ExamplePublishS) StartService ¶
func (mExamplePublish *ExamplePublishS) StartService()
* 启动服务 */
func (*ExamplePublishS) StopService ¶
func (mExamplePublish *ExamplePublishS) StopService()
* 停止服务 */
type ExampleSubscribeS ¶
type ExampleSubscribeS struct { Const struct { // contains filtered or unexported fields } Container struct { BehaviorTreeQ *model.QueueS } Connection struct{} StopChannel struct { // contains filtered or unexported fields } // contains filtered or unexported fields }
* ================================ DEFINE ================================ */
func (*ExampleSubscribeS) BehaviorTreePush ¶
func (mExampleSubscribe *ExampleSubscribeS) BehaviorTreePush(receiverConn *websocket.Conn, messageId string, message64 string)
* Receiver -> 添加任务 */
func (*ExampleSubscribeS) IsStarted ¶
func (mExampleSubscribe *ExampleSubscribeS) IsStarted() bool
* 返回开关量 */
func (*ExampleSubscribeS) Log ¶
func (mExampleSubscribe *ExampleSubscribeS) Log(title string, content ...interface{})
* 打印信息 */
func (*ExampleSubscribeS) Ontology ¶
func (mExampleSubscribe *ExampleSubscribeS) Ontology(neuron *frame.NeuronS, mux *http.ServeMux, root string) *ExampleSubscribeS
* 构造本体 */
func (*ExampleSubscribeS) RemoteRequest ¶
func (mExampleSubscribe *ExampleSubscribeS) RemoteRequest(receiverConn *websocket.Conn, messageId string, message64 string)
* Receiver -> 执行远程请求 */
func (*ExampleSubscribeS) RemoteRequest2BTree ¶
func (mExampleSubscribe *ExampleSubscribeS) RemoteRequest2BTree(tree *model.BehaviorTreeS) *model.BehaviorTreeS
* Behavior -> 执行远程请求 */
func (*ExampleSubscribeS) StartService ¶
func (mExampleSubscribe *ExampleSubscribeS) StartService()
* 启动服务 */
func (*ExampleSubscribeS) StopService ¶
func (mExampleSubscribe *ExampleSubscribeS) StopService()
* 停止服务 */