#include "ChannelSlotOfTestbench.h"

#include <stdio.h>

void ChannelSlotOfTestbench::init_channelSlotOfTestbench() { channel = NULL; }

ChannelSlotOfTestbench::ChannelSlotOfTestbench() {
  init_channelSlotOfTestbench();
}

bool ChannelSlotOfTestbench::set_channel(Channel *channel) {
  if (channel != NULL) {
    this->channel = channel;
    return true;
  }
  return false;
}

bool ChannelSlotOfTestbench::del_channel() {
  if (channel != NULL) {
    channel = NULL;
    return true;
  }
  return false;
}

Channel *ChannelSlotOfTestbench::get_channel() { return channel; }
