22 using namespace TTEthernetModel;
43 ev <<
"Initialize Buffer" << endl;
64 getDisplayString().setTagArg(
"i", 1,
"black");
65 getDisplayString().setTagArg(
"tt", 0,
"Buffer is empty");
69 getDisplayString().setTagArg(
"i", 1,
"");
70 getDisplayString().setTagArg(
"tt", 0,
"");
109 if (msg->arrivedOn(
"in"))
111 EtherFrame *frame = check_and_cast<EtherFrame *>(msg);
115 for(std::map<TTEApplicationBase*,Callback*>::const_iterator iter =
receiveCallbacks.begin();
117 iter->first->executeCallback(iter->second);
129 std::string destinationGatesString = par(
"destination_gates").stdstringValue();
130 std::vector<std::string> destinationGatePaths;
131 split(destinationGatesString,
',',destinationGatePaths);
132 for(std::vector<std::string>::iterator destinationGatePath = destinationGatePaths.begin();
133 destinationGatePath!=destinationGatePaths.end();destinationGatePath++){
140 ev<<
"Configuration problem: Gate "<<(*destinationGatePath)<<
" could not be resolved!"<<endl;
141 getDisplayString().setTagArg(
"i2", 0,
"status/excl3");
142 getDisplayString().setTagArg(
"tt", 0,
"WARNING: Configuration Problem outgoing gate!");
150 ev <<
"Buffer::enqueue not implemented" << endl;
156 ev <<
"Buffer::dequeue not implemented" << endl;