/* * SplitOperation.cc * * Created on: 31.05.2011 * Author: sgaebler * Author: jgaebler */ #include "SplitOperation.h" namespace ubeeme { namespace moversight { /** * @brief Default c'tor */ SplitOperation::SplitOperation(){ } /** * @brief c'tor with split parameters * @param options The options of the split operation * @param splitPeers The IDs of the peers to seperate from the group */ SplitOperation::SplitOperation(SplitOptions options, PeerIDList splitPeers) { setOptions(options); setSplitPeers(splitPeers); } /** * @brief Default d'tor */ SplitOperation::~SplitOperation() { } /** * @brief Set the given options of a split. * @param options The options of a split. */ void SplitOperation::setOptions(SplitOptions o) { options = o; } /** * @brief Set the given list of PeerIDs. * @param splitPeers The list of PeerIDs of the splitting peers. */ void SplitOperation::setSplitPeers(PeerIDList splitPeers) { this->splitPeers = splitPeers; } /** * @brief Get the options of a split. * @return options The options of a split. */ SplitOptions SplitOperation::getOptions() const { return options; } /** * @brief Get the list of PeerIDs. * @return splitPeers The list of PeerIDs of the splitting peers. */ PeerIDList SplitOperation::getSplitPeers() { return splitPeers; } } }