Beispiel #1
0
        public int Initialize(string path)
        {
            HeatbmiService service = new HeatbmiService();

            _service = service;
            BmiMessage response = service.Component.Initialize().Execute();

            _id = response.Message.ToString().Substring(43, 36);
            return(0);
        }
Beispiel #2
0
        public Variable GetVariable(string VariableName)
        {
            Variable var = new Variable(VariableName);


            BmiMessage response = _service.Component.GetVarGrid(_id, VariableName).Execute();

            var.Grid = this.GetGrid(VariableName);

            response   = _service.Component.GetVarNbytes(_id, VariableName).Execute();
            var.NBytes = Convert.ToInt32(response.Message);

            response = _service.Component.GetVarType(_id, VariableName).Execute();
            var.Type = Convert.ToString(response.Message);

            response  = _service.Component.GetVarUnits(_id, VariableName).Execute();
            var.Units = Convert.ToString(response.Message);

            return(var);
        }