public object Visit(CogniPy.CNL.DL.Number e) { var sval = e.val.ToString(); if (attributeName.get() != null) { dataValues.Add(Tuple.Create(e.getTypeTag(), attributeName.get(), sval)); } if (!foundValues.ContainsKey(e.getTypeTag() + ":" + sval)) { foundValues.Add(e.getTypeTag() + ":" + sval, e); } if (DeltaKind == "<" || DeltaKind == "≠") { var sval2 = (int.Parse(sval) - 1).ToString(); if (attributeName.get() != null) { dataValues.Add(Tuple.Create(e.getTypeTag(), attributeName.get(), sval2)); } if (!foundValues.ContainsKey(e.getTypeTag() + ":" + sval2)) { foundValues.Add(e.getTypeTag() + ":" + sval2, e); } } if (DeltaKind == ">" || DeltaKind == "≠") { var sval2 = (int.Parse(sval) + 1).ToString(); if (attributeName.get() != null) { dataValues.Add(Tuple.Create(e.getTypeTag(), attributeName.get(), sval2)); } if (!foundValues.ContainsKey(e.getTypeTag() + ":" + sval2)) { foundValues.Add(e.getTypeTag() + ":" + sval2, e); } } return(sval); }
public virtual object Visit(CogniPy.CNL.DL.Number e) { return(e); }