Esempio n. 1
0
        public FunctionArgumentInfo GetArgument(StrongIdentifierValue name)
        {
            if (_argumentsDict.ContainsKey(name))
            {
                return(_argumentsDict[name]);
            }

            return(null);
        }
Esempio n. 2
0
        public FuzzyLogicOperator GetOperator(StrongIdentifierValue name)
        {
            if (!Operators.Any())
            {
                return(null);
            }

            return(Operators.SingleOrDefault(p => p.Name == name));
        }
Esempio n. 3
0
        public WaypointValue(float distance, float horizontalAngle, IEngineContext context)
        {
            _context = context;

            AbcoluteCoordinates = context.HostSupport.ConvertFromRelativeToAbsolute(new RelativeCoordinate()
            {
                Distance = distance, HorizontalAngle = horizontalAngle
            });
            Name = new StrongIdentifierValue();
        }
Esempio n. 4
0
        public StrongIdentifierValue GetDest(StrongIdentifierValue sourceVarName)
        {
#if DEBUG
            //_gbcLogger.Info($"sourceVarName = {sourceVarName}");
#endif

            if (_varsDict.ContainsKey(sourceVarName))
            {
                return(_varsDict[sourceVarName]);
            }

            throw new NotImplementedException();
        }
        //private static ILogger _gbcLogger = LogManager.GetCurrentClassLogger();
#endif

        public void AddIdentifier(StrongIdentifierValue identifier)
        {
#if DEBUG
            //_gbcLogger.Info($"identifier = {identifier}");
#endif

            if (NonNumericValue == null)
            {
                NonNumericValue = identifier;
            }
            else
            {
                _operators.Add(NonNumericValue);
                NonNumericValue = identifier;
            }
        }
Esempio n. 6
0
 /// <inheritdoc/>
 IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(StrongIdentifierValue name)
 {
     return(_commonPersistIndexedLogicalData.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(name));
 }
Esempio n. 7
0
        /// <inheritdoc/>
        IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartOfFactsByKeyOfRelation(StrongIdentifierValue name)
        {
#if DEBUG
            //LogInstance.Log($"key = {key}");
#endif

            return(_commonPersistIndexedLogicalData.GetIndexedRulePartOfFactsByKeyOfRelation(name));
        }
Esempio n. 8
0
 /// <inheritdoc/>
 public bool ContainsArgument(StrongIdentifierValue name)
 {
     return(_argumentsDict.ContainsKey(name));
 }
Esempio n. 9
0
 /// <inheritdoc/>
 public bool ContainsArgument(StrongIdentifierValue name)
 {
     throw new NotImplementedException();
 }