/** * Set application TCP entity. * * @param tcp tcp entity */ public void setTcpEntity(TransInterface.TransTcpInterface tcp) { if (!JistAPI.isEntity(tcp)) throw new IllegalArgumentException("expected entity"); this.tcp = tcp; }
/** {@inheritDoc} */ public void setCurrentThread(SimtimeThread thread) { if (!JistAPI.isEntity(thread)) throw new IllegalArgumentException("expected entity"); this.thread = thread; }
/** * Set application UDP entity. * * @param udp udp entity */ public void setUdpEntity(TransInterface.TransUdpInterface udp) { if (!JistAPI.isEntity(udp)) throw new IllegalArgumentException("expected entity"); this.udp = udp; }