lib/openc3/interfaces/simulated_target_interface.rb in openc3-5.15.2 vs lib/openc3/interfaces/simulated_target_interface.rb in openc3-5.16.0
- old
+ new
@@ -12,11 +12,11 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# Modified by OpenC3, Inc.
-# All changes Copyright 2022, OpenC3, Inc.
+# All changes Copyright 2024, OpenC3, Inc.
# All Rights Reserved
#
# This file may also be used under the terms of a commercial license
# if purchased from OpenC3, Inc.
@@ -36,10 +36,14 @@
@sim_target_class = OpenC3.require_class sim_target_file
@sim_target = nil
@write_raw_allowed = false
end
+ def connection_string
+ return @sim_target_class.to_s
+ end
+
# Initialize the simulated target object and "connect" to the target
def connect
unless @initialized
# Create Simulated Target Object
@sim_target = @sim_target_class.new(@target_names[0])
@@ -137,15 +141,15 @@
raise "Interface not connected"
end
end
# write_raw is not implemented and will raise a RuntimeError
- def write_raw(data)
+ def write_raw(_data)
raise "write_raw not implemented for SimulatedTargetInterface"
end
# Raise an error because raw logging is not supported for this interface
- def stream_log_pair=(stream_log_pair)
+ def stream_log_pair=(_stream_log_pair)
raise "Raw logging not supported for SimulatedTargetInterface"
end
# Disconnect from the simulator
def disconnect