classdef Referenzanlage < handle
    %UNTITLED Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
        inMasse
        inObjFluss
        outPos 
        outMasse 
        outObjFluss 
        outLeistung 
        Behaelterllaenge = 0.6;
        Abstand 
        Signal = [zeros(1,50), ones(1,201)];
        sum
    end
    
    methods
        
                
        function RefGeschwindigkeit(obj)
            
         Gesch = obj.Signal;
            
            %disp(Gesch);
            plot(Gesch);
            
            
        end
        function MasseFluss(obj)
            
            m0 = 2;
            obj.sum = 0;
            for n= 1:1:8
                
                obj.inMasse(1,n) =(round(rand(1)*10)+2) + m0;  
                obj.sum = obj.sum + obj.inMasse(1,n);               
                
            end
            
             plot(obj.inMasse);
             disp(['die  Ref inMasse ist ' obj.inMasse]);
           
            
        end
    end
    
end

