public FunctionArgumentInfo GetArgument(StrongIdentifierValue name) { if (_argumentsDict.ContainsKey(name)) { return(_argumentsDict[name]); } return(null); }
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(); }
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; } }
/// <inheritdoc/> IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(StrongIdentifierValue name) { return(_commonPersistIndexedLogicalData.GetIndexedRulePartWithOneRelationWithVarsByKeyOfRelation(name)); }
/// <inheritdoc/> IList <BaseRulePart> ILogicalStorage.GetIndexedRulePartOfFactsByKeyOfRelation(StrongIdentifierValue name) { #if DEBUG //LogInstance.Log($"key = {key}"); #endif return(_commonPersistIndexedLogicalData.GetIndexedRulePartOfFactsByKeyOfRelation(name)); }
/// <inheritdoc/> public bool ContainsArgument(StrongIdentifierValue name) { return(_argumentsDict.ContainsKey(name)); }
/// <inheritdoc/> public bool ContainsArgument(StrongIdentifierValue name) { throw new NotImplementedException(); }