CanadianMachines / MachineLib / AirSource.cpp
AirSource.cpp
Raw
/**
 * @file AirSource.cpp
 * @author sriram
 */

#include "pch.h"
#include "AirSource.h"


void AirSource::SendPressure(double pressure)
{
	if(mSink != nullptr)
	{
		mSink->SendPressure(pressure);
	}
}

void AirSource::SetSink(AirSink *sink)
{
	mSink=sink;
	mSink->SetSource(this);
}