Exemplo n.º 1
0
 public PathSpecification getPath(string name)
 {
     if (Classifier.hasAttribute(name))
     {
         Slot prop = getProperty(name);
         if (prop != null)
         {
             return((PathSpecification)prop.getValue());
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 public void setActiveShape(string name)
 {
     if (Classifier.hasAttribute(name))
     {
         Slot s = getProperty(name);
         if (s != null)
         {
             activeShape = (ShapeSpecification)s.getValue();
             if (activeShape != null)
             {
                 activeShape.setEntity(this);
             }
             else
             {
                 System.Console.WriteLine(this.name + ".setActiveShape(" + name + ") : the property is undefined");
             }
         }
     }
 }