From 310c9d21d4f20bb8306ff952eeaa6170d07fe1a2 Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Thu, 19 Nov 2020 18:13:20 +0100 Subject: [PATCH] added Coalition class will be used in rPATL formulas --- src/storm/logic/Coalition.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/storm/logic/Coalition.cpp diff --git a/src/storm/logic/Coalition.cpp b/src/storm/logic/Coalition.cpp new file mode 100644 index 000000000..ff67d735b --- /dev/null +++ b/src/storm/logic/Coalition.cpp @@ -0,0 +1,23 @@ +#include "storm/logic/Coalition.h" + +namespace storm { + namespace logic { + + Coalition::Coalition(std::vector const& playerNames, + std::vector const& playerIds) : playerNames(playerNames), playerIds(playerIds) { + // Intentionally left empty. + } + + std::ostream& operator<<(std::ostream& stream, Coalition const& coalition) { + stream << "<<"; + for (auto const& playerName : coalition.playerNames) { + stream << playerName << ", "; + } + for (auto const& playerId : coalition.playerIds) { + stream << playerId << ", "; + } + stream << ">>"; + return stream; + } + } +}