OneToOneWiringMethod.h

Go to the documentation of this file.
00001 
00011 #ifndef ONETOONEWIRINGMETHOD_H
00012 #define ONETOONEWIRINGMETHOD_H
00013 
00014 #include <WiringMethod.h>
00015 
00017 
00021 class OneToOneWiringMethod : public WiringMethod
00022 {
00023 
00024     public:
00025 
00027         OneToOneWiringMethod(SimNetwork *net) :
00028             WiringMethod(net)
00029         {
00030         }
00031         ;
00032 
00034         OneToOneWiringMethod(SimNetwork &net) :
00035             WiringMethod(net)
00036         {
00037         }
00038         ;
00039 
00040         virtual ~OneToOneWiringMethod()
00041         {
00042         }
00043         ;
00044 
00045         virtual unsigned connect(const SimObjectPopulation &source, const SimObjectPopulation &destination, ConnectionIterator &iterator,
00046                                  bool collectPairs = false, ConnectPairsVector connectPairs = ConnectPairsVector( new vector< pair<SimObject::ID, SimObject::ID> > ));
00047 
00048         virtual SimObject::ID::Vector connect(const SimObjectPopulation &source, const SimObjectPopulation &destination, const SimObjectFactory &connector,
00049                                               ConnectionIterator &iterator, bool collectIDs = false, bool collectPairs = false,
00050                                               WiringMethod::ConnectPairsVector connectPairs =
00051                                               WiringMethod::ConnectPairsVector(new vector< pair<SimObject::ID,
00052                                                       SimObject::ID> >));
00053 
00054         virtual SimObject::ID::Vector connect(const SimObjectPopulation &source, const SimObjectPopulation &destination, ConnObjectFactory &connector,
00055                                               ConnectionIterator &iterator, bool collectIDs = false, bool collectPairs = false,
00056                                               WiringMethod::ConnectPairsVector connectPairs =
00057                                               WiringMethod::ConnectPairsVector(new vector< pair<SimObject::ID,
00058                                                       SimObject::ID> >));
00059 
00060         unsigned connect(const SimObjectPopulation &source, const SimObjectPopulation &destination, const Time & delay, bool collectPairs = false,
00061                          WiringMethod::ConnectPairsVector connectPairs = WiringMethod::ConnectPairsVector(new vector< pair<SimObject::ID, SimObject::ID> >));
00062 
00063         unsigned connect(const vector< SimObject::ID::Packed> &source, const vector< SimObject::ID::Packed> &destination, const Time & delay,
00064                          bool collectPairs = false, ConnectPairsVector connectPairs = ConnectPairsVector(new vector< pair<SimObject::ID, SimObject::ID> >))
00065         {
00066             const SimObjectPopulation srcpopul(source);
00067             const SimObjectPopulation destpopul(destination);
00068             return connect(srcpopul, destpopul, delay, collectPairs, connectPairs);
00069         }
00070 
00071 };
00072 
00073 #endif

Generated on Wed Jul 9 16:34:37 2008 for PCSIM by  doxygen 1.5.5