Esempio n. 1
0
 public EngUnit(EnterprisePropertyType type, string name, RoundFunction roundFunction, List <Func <double, RestrictionCheckResult> > restrictions)
 {
     InputConvertFunction  = BaseEngUnitConvert;
     OutputConvertFunction = BaseEngUnitConvert;
     RoundFunction         = roundFunction;
     Type         = type;
     Name         = name;
     Restrictions = restrictions;
 }
Esempio n. 2
0
        public PhysicalProperty(IPoint point, EngUnit engUnit, EnterprisePropertyType type)
        {
            this._point = point;

            this._engUnit = engUnit;

            this.Type = type;

            this.ExecutionTime = DateTime.Now;
        }
Esempio n. 3
0
 public EngUnit(ConvertFunction inputConvert, ConvertFunction outputConvert, RoundFunction roundFunction, EnterprisePropertyType type, string name, EngUnit baseEngUnit, List <Func <double, RestrictionCheckResult> > restrictions)
 {
     InputConvertFunction  = inputConvert;
     OutputConvertFunction = outputConvert;
     RoundFunction         = roundFunction;
     Name         = name;
     Type         = type;
     _baseEngUnit = baseEngUnit;
     Restrictions = restrictions;
 }
Esempio n. 4
0
        public StateProperty(IPoint point, EnterprisePropertyType type, List <string> BadStates)
        {
            this._point = point;

            this.Type = type;

            this.ExecutionTime = DateTime.Now;

            this._badStates = BadStates;
        }
Esempio n. 5
0
        public EngUnit GetEngUnit(EnterprisePropertyType type, string engUnitName)
        {
            switch (type)
            {
            case EnterprisePropertyType.DENSITY:
                return(GetDensityEU(engUnitName));

            case EnterprisePropertyType.LEVEL:
                return(GetLevelEU(engUnitName));

            case EnterprisePropertyType.MASSFLOW:
                return(GetMassFlowEU(engUnitName));

            case EnterprisePropertyType.PRESSURE:
                return(GetPressureEU(engUnitName));

            case EnterprisePropertyType.TEMPERATURE:
                return(GetTemperatureEU(engUnitName));

            case EnterprisePropertyType.VOLUMEFLOW:
                return(GetVolumeFlowEU(engUnitName));

            case EnterprisePropertyType.VOLUME:
                return(GetVolumeEU(engUnitName));

            case EnterprisePropertyType.MASS:
                return(GetMassEU(engUnitName));

            case EnterprisePropertyType.CONCENTRATION:
                return(GetConcentrationEU(engUnitName));

            case EnterprisePropertyType.TOLERANCE:
                return(GetToleranceEU());

            default:
                throw new EngUnitNotFoundException();
            }
        }