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

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

            return(Operators.SingleOrDefault(p => p.Name == name));
        }
Ejemplo 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();
        }
Ejemplo 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;
            }
        }
Ejemplo n.º 6
0
 /// <inheritdoc/>
 IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(StrongIdentifierValue name)
 {
     return(_commonPersistIndexedLogicalData.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(name));
 }
Ejemplo n.º 7
0
        /// <inheritdoc/>
        IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartOfFactsByKeyOfRelation(StrongIdentifierValue name)
        {
#if DEBUG
            //LogInstance.Log($"key = {key}");
#endif

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