/** Loads the trace file into this component. */ public void load(String filename_) { try { setReader(new FileReader(filename_)); } catch (Exception e_) { e_.printStackTrace(); } }
protected void dataArriveAtUpPort(Object data_, Port upPort_) { try { if (upPort_ == null || ((ByteStreamContract.Message) data_).isReport()) tcpsink.dataArriveAtUpPort(data_, upPort_); else super.dataArriveAtUpPort(data_, upPort_); } catch (Exception e_) { if (e_ instanceof ClassCastException) error(data_, "dataArriveAtUpPort()", upPort, "unrecognized data: " + e_); else e_.printStackTrace(); } }