Exemple #1
0
 public virtual object Visit(CogniPy.CNL.DL.InstanceValue e)
 {
     using (isKindOf.set("D"))
     {
         e.R.accept(this);
         return(e);
     }
     e.I.accept(this);
     e.V.accept(this);
 }
        public object Visit(CogniPy.CNL.DL.InstanceValue e)
        {
            instanceValues.Add(e);
            StringBuilder sb = new StringBuilder();

            using (isKindOf.set(EntityKind.DataRole))
            {
                sb.Append(e.R.accept(this));
            }
            sb.Append(Modality(e.modality));
            sb.Append("(");
            sb.Append(e.I.accept(this));
            if (e.I is NamedInstance)
            {
                signature.Add(Tuple.Create(EntityKind.Instance, (e.I as NamedInstance).name));
            }
            sb.Append(",");
            using (attributeName.set(null))
                sb.Append(e.V.accept(this));
            sb.Append(")");
            return(sb.ToString());
        }