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

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

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

            AbcoluteCoordinates = context.HostSupport.ConvertFromRelativeToAbsolute(new RelativeCoordinate()
            {
                Distance = distance, HorizontalAngle = horizontalAngle
            });
            Name = new StrongIdentifierValue();
        }
Exemple #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;
            }
        }
Exemple #6
0
 /// <inheritdoc/>
 IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(StrongIdentifierValue name)
 {
     return(_commonPersistIndexedLogicalData.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(name));
 }
Exemple #7
0
        /// <inheritdoc/>
        IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartOfFactsByKeyOfRelation(StrongIdentifierValue name)
        {
#if DEBUG
            //LogInstance.Log($"key = {key}");
#endif

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