示例#1
0
        private JackEngineDataNode GetNodeData(JackEngineNode node)
        {
            var key = node.GetNodeKey();
            JackEngineDataNode nodeData = null;

            if (Data.NodeData.ContainsKey(key))
            {
                nodeData = Data.NodeData[key];
            }
            return(nodeData ?? new JackEngineDataNode());
        }
示例#2
0
        private void SaveNodeData(JackEngineNode node, JackEngineDataNode data)
        {
            var key = node.GetNodeKey();

            if (Data.NodeData.ContainsKey(key))
            {
                Data.NodeData[key] = data;
            }
            else
            {
                Data.NodeData.Add(key, data);
            }
        }
示例#3
0
 public abstract string HandleRequest(LuisResult result, JackEngineDataNode nodeData, JackEngineData globalData);