Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OCSimulator"/> class.
        /// Must be public for COM registration.
        /// </summary>
        public ObservingConditions()
        {
            try
            {
                TL = OCSimulator.TL;
                TL.LogMessage("ObservingConditions", "Starting initialisation");

                clientNumber = OCSimulator.GetUniqueClientNumber();
                TL.LogMessage(clientNumber, "ObservingConditions", "This instance's unique client number: " + clientNumber);

                TL.LogMessage(clientNumber, "ObservingConditions", "Completed initialisation");
            }
            catch (Exception ex)
            {
                TL.LogMessageCrLf("ObservingConditions", ex.ToString());
            }
        }
Пример #2
0
 public string CommandString(string command, bool raw)
 {
     return(OCSimulator.CommandString(clientNumber, command, raw));
 }
Пример #3
0
 public bool CommandBool(string command, bool raw)
 {
     return(OCSimulator.CommandBool(clientNumber, command, raw));
 }
Пример #4
0
 public void CommandBlind(string command, bool raw)
 {
     OCSimulator.CommandBlind(clientNumber, command, raw);
 }
Пример #5
0
 public string Action(string actionName, string actionParameters)
 {
     return(OCSimulator.Action(clientNumber, actionName, actionParameters));
 }
Пример #6
0
 /// <summary>
 /// Displays the Setup Dialog form.
 /// If the user clicks the OK button to dismiss the form, then
 /// the new settings are saved, otherwise the old values are reloaded.
 /// THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED!
 /// </summary>
 public void SetupDialog()
 {
     OCSimulator.SetupDialog(clientNumber);
 }
Пример #7
0
 public double TimeSinceLastUpdate(string PropertyName)
 {
     return(OCSimulator.TimeSinceLastUpdate(clientNumber, PropertyName));
 }
Пример #8
0
 public string SensorDescription(string PropertyName)
 {
     return(OCSimulator.SensorDescription(clientNumber, PropertyName));
 }
Пример #9
0
 public void Refresh()
 {
     OCSimulator.Refresh(clientNumber);
 }