Exemplo n.º 1
0
 public virtual object Visit(CogniPy.CNL.DL.SameInstances e)
 {
     foreach (var i in e.Instances)
     {
         i.accept(this);
     }
     return(e);
 }
Exemplo n.º 2
0
        public object Visit(CogniPy.CNL.DL.SameInstances e)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("=");
            sb.Append(Modality(e.modality));
            sb.Append("{");
            bool first = true;

            foreach (var I in e.Instances)
            {
                if (first)
                {
                    first = false;
                }
                else
                {
                    sb.Append(",");
                }
                sb.Append(I.accept(this));
            }
            sb.Append("}");
            return(sb.ToString());
        }