example of an alternative flavour
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 5 Dec 2011 17:43:07 +0000 (18:43 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 5 Dec 2011 17:43:07 +0000 (18:43 +0100)
sfa/generic/max.py [new file with mode: 0644]

diff --git a/sfa/generic/max.py b/sfa/generic/max.py
new file mode 100644 (file)
index 0000000..8920ae7
--- /dev/null
@@ -0,0 +1,21 @@
+# an example of how to plugin the max aggregate manager with the flavour model
+# might need to be tested
+# 
+from sfa.generic.pl import pl
+
+import sfa.managers.aggregate_manager_max
+
+class max (pl):
+
+# the max flavour behaves like pl, except for 
+# the aggregate
+    def aggregate_manager_class (self) :
+        return sfa.managers.aggregate_manager_max.AggregateManagerMax
+
+# I believe the component stuff is not implemented
+    def component_manager_class (self):
+        return None
+    def component_driver_class (self):
+        return None
+
+