Esempio n. 1
0
        public ReservationStation(int numToMake, RSType resStaType)
        {
            numBuffers = numToMake;
            rsType     = resStaType;

            for (int i = 0; i < numToMake; i++)
            {
                opCodes.Add(Instruction.Opcodes.UNINIT);
                addresses.Add(-1);
                busy.Add(false);
                Qj.Add(null);
                Qk.Add(null);
                Vj.Add(null);
                Vk.Add(null);
                dest.Add(null);
                states.Add(Instruction.State.Issue);
                remainingCycles.Add(-1);
                cyclesToComplete.Add(-1);
                results.Add(-1);
                isReady.Add(false);
                addrReady.Add(false);
                instrNum.Add(-1);
                robNum.Add(-1);
            }
        }
        //public int NewNo { get; set; }

        // Display Info of the RFEM Objects on Panels
        // Parameters are separated by ";". The component split text can be used to break the string down into a list.
        public override string ToString()
        {
            return(string.Format($"RFEM-LineSupport;No:{No};Ux:{Tx.DOF("kN/m")};Uy:{Ty.DOF("kN/m")};Uz:{Tz.DOF("kN/m")};" +
                                 $"φx:{Rx.DOF("kNm/rad")};φy:{Ry.DOF("kNm/rad")};φz:{Rz.DOF("kNm/rad")};Tag:{((Tag == "") ? "-" : Tag)};" +
                                 $"LineList:{((LineList == "") ? "-" : LineList)};IsValid:{IsValid};ID:{((ID == "") ? "-" : ID)};ReferenceSystemType:{RSType.ToString()};" +
                                 $"ToModify:{ToModify};ToDelete:{ToDelete};Comment:{((Comment == "") ? "-" : Comment)};"));
        }
Esempio n. 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="rst"></param>
 /// <param name="dt"></param>
 /// <param name="text"></param>
 public RSRecord( RSType rst, DateTime dt, string text )
 {
     this.rsType = rst;
     this.dt = dt;
     this.text = text;
 }
Esempio n. 4
0
 private void AddRSData(RSType rstype, byte[] buffer)
 {
     string text = ASCIIEncoding.ASCII.GetString(buffer);
     RSRecord record = new RSRecord(rstype, DateTime.Now, text);
     this._rsRecords.Add(record);
 }
        //public int NewNo { get; set; }

        // Display Info of the RFEM Objects on Panels
        // Parameters are separated by ";". The component split text can be used to break the string down into a list.
        public override string ToString()
        {
            return(string.Format($"RFEM-NodalSupport;No:{No};Ux:{Tx.DOF("kN/m")};Uy:{Ty.DOF("kN/m")};Uz:{Tz.DOF("kN/m")};" +
                                 $"φx:{Rx.DOF("kNm/rad")};φy:{Ry.DOF("kNm/rad")};φz:{Rz.DOF("kNm/rad")};Tag:{((Tag == "") ? "-" : Tag)};" +
                                 $"NodeList:{((NodeList == "") ? "-" : NodeList)};IsValid:{IsValid};ID:{((ID == "") ? "-" : ID)};ReferenceSystemType:{RSType.ToString()};" +
                                 $"SupportNonlinearityX:{NTx};SupportNonlinearityY:{NTy};SupportNonlinearityZ:{NTz};" +
                                 $"RestraintNonlinearityX:{NRx};RestraintNonlinearityY:{NRy};RestraintNonlinearityZ:{NRz};" +
                                 $"Orientation:{Orientation.ToLabelString()};RSeq:{RSeq};RotX:{RotX};RotY:{RotY};RotZ:{RotZ};" +
                                 $"ToModify:{ToModify};ToDelete:{ToDelete};Comment:{((Comment == "") ? "-" : Comment)};"));
        }
Esempio n. 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="rst"></param>
 /// <param name="dt"></param>
 /// <param name="text"></param>
 public RSRecord(RSType rst, DateTime dt, string text)
 {
     this.rsType = rst;
     this.dt     = dt;
     this.text   = text;
 }