Ejemplo n.º 1
0
 public CTsUnforceArray(CTsVariable var)
     : base(var)
 {
     Index = var.Index;
 }
Ejemplo n.º 2
0
        private static CTsGenericInstr buildTtStep(CInstruction inst, CTsVariable TsVariable)
        {
            CTsGenericInstr instr = null;
            string typeOfStep = inst.GetType().ToString();
            string typeOfData = inst.data.GetType().ToString();
            CVariable variable = (CVariable)inst.data;

            if (String.Equals(typeOfStep, typeof(CInstrUnforce).FullName) && !String.Equals(typeOfData, typeof(CVariableArray).FullName))
            {
                return new CTsTtUnforce(TsVariable);
            }

            if (String.Equals(typeOfStep, typeof(CInstrForce).FullName))
            {
                return new CTsTtForce(TsVariable);
            }

            if (String.Equals(typeOfStep, typeof(CInstrTest).FullName))
            {
                return new CTsTtTest(TsVariable);
            }

            return instr;
        }
Ejemplo n.º 3
0
 public CTsForce(CTsVariable var)
     : base(var)
 {
 }
Ejemplo n.º 4
0
        private static CTsGenericInstr buildCbStep(CInstruction inst, CTsVariable TsVariable)
        {
            CTsGenericInstr instr = null;
            string typeOfStep = inst.GetType().ToString();
            string typeOfData = inst.data.GetType().ToString();
            CVariable variable = (CVariable)inst.data;

            if (String.Equals(typeOfStep, typeof(CInstrUnforce).FullName))
            {
                if(String.Equals(typeOfData, typeof(CVariableArray).FullName))
                    instr = new CTsUnforceArray(TsVariable);
                else
                    instr = new CTsUnforce(TsVariable);
            }

            if (String.Equals(typeOfStep, typeof(CInstrForce).FullName))
            {
                if (String.Equals(typeOfData, typeof(CVariableBool).FullName) || String.Equals(typeOfData, typeof(CVariableInt).FullName) || String.Equals(typeOfData, typeof(CVariableUInt).FullName) || String.Equals(typeOfData, typeof(CVariableDouble).FullName))
                    instr = new CTsForce(TsVariable);

                if (String.Equals(typeOfData, typeof(CVariableArray).FullName))
                    instr = new CTsForceArray(TsVariable);
            }

            if (String.Equals(typeOfStep, typeof(CInstrTest).FullName))
            {
                if (String.Equals(typeOfData, typeof(CVariableBool).FullName) || String.Equals(typeOfData, typeof(CVariableInt).FullName) || String.Equals(typeOfData, typeof(CVariableUInt).FullName))
                    instr = new CTsTest(TsVariable);

                if (String.Equals(typeOfData, typeof(CVariableDouble).FullName))
                    instr = new CTsTestAna(TsVariable);

                if (String.Equals(typeOfData, typeof(CVariableArray).FullName))
                    instr = new CTsTestArray(TsVariable);
            }
            return instr;
        }
Ejemplo n.º 5
0
 public CTsTest(CTsVariable var)
     : base(var)
 {
 }
Ejemplo n.º 6
0
 public CTsBasedVarInstr(CTsVariable var)
 {
     this.Variable = var;
 }
Ejemplo n.º 7
0
 public CTsTestArray(CTsVariable var)
     : base(var)
 {
     Index = var.Index;
 }
Ejemplo n.º 8
0
 public CTsTtUnforce(CTsVariable var)
     : base(var)
 {
 }