Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simple example ruby using simdag (first tests)
[simgrid.git] / src / bindings / rubyDag / simdag.rb
diff --git a/src/bindings/rubyDag/simdag.rb b/src/bindings/rubyDag/simdag.rb
new file mode 100644 (file)
index 0000000..a4bccca
--- /dev/null
@@ -0,0 +1,39 @@
+require 'dag'
+
+#===========================
+# Task Class
+# ==========================
+class DAG::Task < DAG::SdTask
+  
+  def initialize(*args)
+    super(args)
+  end
+  
+  def name()
+    super(self)
+  end
+  
+  def startTime()
+    super(self)
+  end
+  
+  def finishTime()
+    super(self)
+  end
+  
+end
+
+#=============================
+# WorkStation Class
+#=============================
+class DAG::Workstation < DAG::SdWorkstation
+  
+  def initialize()
+    super()
+  end
+  
+  def name()
+    super(self)
+  end
+  
+end
\ No newline at end of file