コード例 #1
0
 public Meridian SlaveOf(Meridian organMaster)
 {
     if (organMaster.ID == 2)
     {
         return(Meridians[1]);
     }
     if (organMaster.ID == 5)
     {
         return(Meridians[4]);
     }
     foreach (var o in Meridians)
     {
         if (o.Value.Master.ID == organMaster.ID)
         {
             return(o.Value);
         }
     }
     return(null);
 }
コード例 #2
0
 public Meridian SonOf(Meridian organMother)
 {
     if (organMother.ID == 2)
     {
         return(Meridians[12]);
     }
     if (organMother.ID == 5)
     {
         return(Meridians[8]);
     }
     foreach (var o in Meridians)
     {
         if (o.Value.Mother.ID == organMother.ID)
         {
             return(o.Value);
         }
     }
     return(null);
 }
コード例 #3
0
        public decimal IndGOf(Meridian organ)
        {
            decimal G = (organ.G_as_Master + organ.G_as_Mother + organ.Mother.G_as_Mother + organ.Master.G_as_Master) / 4;

            return(G);
        }