00001
00011 #ifndef DISTRIBUTEDSYNCWIRINGMETHOD_H
00012 #define DISTRIBUTEDSYNCWIRINGMETHOD_H
00013
00014 #include <WiringMethod.h>
00015
00017
00024 class DistributedSyncWiringMethod : public WiringMethod {
00025
00026 public:
00027
00029 DistributedSyncWiringMethod(SimNetwork &net)
00030 : WiringMethod(net) {
00031 };
00032
00034 DistributedSyncWiringMethod(SimNetwork *net)
00035 : WiringMethod(net) {
00036 };
00037
00039 virtual ~DistributedSyncWiringMethod() {
00040 };
00041
00042 virtual unsigned connect(const SimObjectPopulation &source,
00043 const SimObjectPopulation &destination,
00044 ConnectionIterator &iterator,
00045 bool collectPairs = false,
00046 WiringMethod::ConnectPairsVector connectPairs = WiringMethod::ConnectPairsVector(new vector< pair<SimObject::ID, SimObject::ID> > ));
00047
00048 virtual SimObject::ID::Vector connect(const SimObjectPopulation &source,
00049 const SimObjectPopulation &destination,
00050 const SimObjectFactory &connector,
00051 ConnectionIterator &iterator,
00052 bool collectIDs = false,
00053 bool collectPairs = false,
00054 WiringMethod::ConnectPairsVector connectPairs = WiringMethod::ConnectPairsVector(new vector< pair<SimObject::ID, SimObject::ID> >));
00055
00056 virtual SimObject::ID::Vector connect(const SimObjectPopulation &source,
00057 const SimObjectPopulation &destination,
00058 ConnObjectFactory &connector,
00059 ConnectionIterator &iterator,
00060 bool collectIDs = false,
00061 bool collectPairs = false,
00062 WiringMethod::ConnectPairsVector connectPairs =
00063 WiringMethod::ConnectPairsVector(new vector< pair<SimObject::ID,
00064 SimObject::ID> >));
00065
00066 };
00067
00068 #endif