Exemplo n.º 1
0
 public void setcabinet(string[] devicename, string position,string RFID)
 {
     ModelObject cabinet = new ModelObject();
     cabinet.servercabinet(2, 8.4, 2);
     cabinet.usize = devicename;
     cabinet.RFID = RFID;
     string[] Position = position.Split(',');
     double x1 = System.Convert.ToDouble(Position[0]);
     double y1 = System.Convert.ToDouble(Position[1]);
     double z1 = System.Convert.ToDouble(Position[2]);
     double angel = System.Convert.ToDouble(Position[3]);
     cabinet.Move(x1, y1, z1, angel);
     myStore.Add(RFID, cabinet);
 }
Exemplo n.º 2
0
 public void setups(string position, string RFID)
 {
     ModelObject ups = new ModelObject();
     ups.RFID = RFID;
     ups.ups(1.5, 5, 1);
     string[] Position = position.Split(',');
     double x1 = System.Convert.ToDouble(Position[0]);
     double y1 = System.Convert.ToDouble(Position[1]);
     double z1 = System.Convert.ToDouble(Position[2]);
     double angel = System.Convert.ToDouble(Position[3]);
     ups.Move(x1, y1, z1, angel);
     myStore.Add(RFID, ups);
 }
Exemplo n.º 3
0
 public void setserver(int utype ,string position,string URFID,string RFID,int ut)
 {
     ModelObject server1 = new ModelObject();
     server1.RFID = RFID;
     server1.server(1.5, 0.2*utype, 0.95);
     string[] Position = position.Split(',');
     double x1 = System.Convert.ToDouble(Position[0]);
     double y1 = System.Convert.ToDouble(Position[1]);
     double z1 = System.Convert.ToDouble(Position[2]);
     double angel = System.Convert.ToDouble(Position[3]);
     server1.Move(x1,(ut+1+1)*0.2,z1,angel);
     server1.parentrfid = RFID;
     myStore.Add(URFID, server1);
 }
Exemplo n.º 4
0
 public void setaircondition(string position, string RFID)
 {
     ModelObject air = new ModelObject();
     air.RFID = RFID;
     air.aricondition(1.5, 8, 1);
     string[] Position = position.Split(',');
     double x1 = System.Convert.ToDouble(Position[0]);
     double y1 = System.Convert.ToDouble(Position[1]);
     double z1 = System.Convert.ToDouble(Position[2]);
     double angel = System.Convert.ToDouble(Position[3]);
     air.Move(x1, y1, z1, angel);
     myStore.Add(RFID, air);
 }