23 if(
f < o.
f) {
return true; }
24 if(
f > o.
f) {
return false; }
25 if(
ra < o.
ra) {
return true; }
30 return (
f == o.
f &&
ra == o.
ra);
35 killTime = par(
"killTime").doubleValue();
39 scheduleAt(
killTime,
new cMessage(
"Kill flows"));
44 Enter_Method_Silent();
47 cerr <<
"All flows removed, requested to remove "<<(killCount-i) <<
" more flows" << endl;
51 int r = intuniform(0,
flows.size()-1);
53 if(r == (
int)
flows.size()-1) {
57 f.ra->sleepFlow(f.f, -1);
63 Enter_Method_Silent();
66 RA * ra =
dynamic_cast<RA*
>(source);
Class representing flow object with attributes from specs.
FlowContainer(Flow *_f, RA *_ra)
Define_Module(FlowListener)
void receiveSignal(cComponent *source, simsignal_t signalID, cObject *obj)
bool operator==(const FlowContainer &o) const
bool operator<(const FlowContainer &o) const
vector< FlowContainer > flows
const char * SIG_RA_CreateFlowPositive
void handleMessage(cMessage *msg)