コード例 #1
0
        public int New_(int p_virtualEntity, MoSIoTGenNHibernate.Enumerated.MosIoT.StateTypeEnum p_type, string p_name, string p_description)
        {
            EntityStateEN entityStateEN = null;
            int           oid;

            //Initialized EntityStateEN
            entityStateEN = new EntityStateEN();

            if (p_virtualEntity != -1)
            {
                // El argumento p_virtualEntity -> Property virtualEntity es oid = false
                // Lista de oids id
                entityStateEN.VirtualEntity    = new MoSIoTGenNHibernate.EN.MosIoT.EntityEN();
                entityStateEN.VirtualEntity.Id = p_virtualEntity;
            }

            entityStateEN.Type = p_type;

            entityStateEN.Name = p_name;

            entityStateEN.Description = p_description;

            //Call to EntityStateCAD

            oid = _IEntityStateCAD.New_(entityStateEN);
            return(oid);
        }
コード例 #2
0
        public void Modify(int p_EntityState_OID, MoSIoTGenNHibernate.Enumerated.MosIoT.StateTypeEnum p_type, string p_name, string p_description)
        {
            EntityStateEN entityStateEN = null;

            //Initialized EntityStateEN
            entityStateEN             = new EntityStateEN();
            entityStateEN.Id          = p_EntityState_OID;
            entityStateEN.Type        = p_type;
            entityStateEN.Name        = p_name;
            entityStateEN.Description = p_description;
            //Call to EntityStateCAD

            _IEntityStateCAD.Modify(entityStateEN);
        }
コード例 #3
0
        private void init(int id
                          , MoSIoTGenNHibernate.EN.MosIoT.EntityEN virtualEntity, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.EntityOperationEN> originOperations, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.EntityOperationEN> targetOperations, MoSIoTGenNHibernate.Enumerated.MosIoT.StateTypeEnum type, string name, string description)
        {
            this.Id = id;


            this.VirtualEntity = virtualEntity;

            this.OriginOperations = originOperations;

            this.TargetOperations = targetOperations;

            this.Type = type;

            this.Name = name;

            this.Description = description;
        }
コード例 #4
0
 public EntityStateEN(int id, MoSIoTGenNHibernate.EN.MosIoT.EntityEN virtualEntity, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.EntityOperationEN> originOperations, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.EntityOperationEN> targetOperations, MoSIoTGenNHibernate.Enumerated.MosIoT.StateTypeEnum type, string name, string description
                      )
 {
     this.init(Id, virtualEntity, originOperations, targetOperations, type, name, description);
 }