classdef command < handle
    %COMMAND Used to pass commands to string builder/serial port writer
    %   This is a generic item used to communicate with the serial port. By
    %   using this function, we create the structure to respond with data
    %   or error information to specific items calling the serial port. By
    %   abstracting away aspects of the serial port telemetry so that that
    %   is all handled by the commandprocessor function.
    %   
    %   The data property is of commanddata type. This has a set of
    %   dynamically added properties when "commanddata" is initialized.
    %   E.G. a setpoint command has a 'Temperature' property added by the
    %   calling function.
    
    properties
        data
        type
        sender
    end
    
    methods
        function obj = command(mdata, mtype, msender)
            obj.data = mdata;
            obj.type = mtype;
            obj.sender = msender;
        end
    end
    
end

