00001 #include "LCF.h"
00002 using namespace adevs;
00003
00004 const int LCF::ACE = 0;
00005
00006 LCF::LCF(double sig_period):
00007 Atomic<adevs::PortValue<BasicEvent*> >(),
00008 sig_period(sig_period)
00009 {
00010 }
00011
00012 void LCF::delta_int()
00013 {
00014 }
00015
00016 void LCF::delta_ext(double,const Bag<PortValue<BasicEvent*> >&)
00017 {
00018 }
00019
00020 void LCF::delta_conf(const Bag<PortValue<BasicEvent*> >&)
00021 {
00022 }
00023
00024 void LCF::output_func(Bag<PortValue<BasicEvent*> >& yb)
00025 {
00026 yb.insert(PortValue<BasicEvent*>(ACE,new BasicEvent()));
00027 }
00028
00029 double LCF::ta()
00030 {
00031 return sig_period;
00032 }
00033
00034 void LCF::gc_output(Bag<PortValue<BasicEvent*> >& gb)
00035 {
00036 Bag<PortValue<BasicEvent*> >::iterator iter = gb.begin();
00037 for (; iter != gb.end(); iter++) delete (*iter).value;
00038 }
00039
00040 LCF::~LCF()
00041 {
00042 }
00043