Exemplo n.º 1
0
        /// <summary>
        /// Creates a New InstanceSet in the Instances Collection using the speciefied model. The Instance Set can be
        /// retrieved by the Specified key.
        /// </summary>
        /// <param name="Key">Unique Key to use for this InstanceSet.</param>
        /// <param name="model">The Model to be used in the InstanceSet.</param>
        public virtual void CreateNewInstanceCollection(object Key, vxModel model)
        {
            InstanceSet instanceSet = new InstanceSet(vxEngine);

            instanceSet.InstancedModel = model;
            Instances.Add(Key, instanceSet);
        }
Exemplo n.º 2
0
 protected virtual void Awake()
 {
     if (Instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = (T)this;
         InstanceSet?.Invoke();
     }
 }
Exemplo n.º 3
0
        public object Visit(InstanceSet e)
        {
            if (analizeCase.get() == LocalityKind.Bottom)
            {
                if (e.Instances.Count == 0)
                {
                    return(CreateSimple("∀"));
                }
            }

            return(CreateNull());
        }
Exemplo n.º 4
0
 public override object Visit(InstanceSet e)
 {
     return(new SparqlConstantInstance(owlNC, activeFreeVarId.get(), (e.Instances.First() as NamedInstance).name, useTypeOf));
 }