Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simple example ruby using simdag (first tests)
[simgrid.git] / src / bindings / rubyDag / simdag.rb
1 require 'dag'
2
3 #===========================
4 # Task Class
5 # ==========================
6 class DAG::Task < DAG::SdTask
7   
8   def initialize(*args)
9     super(args)
10   end
11   
12   def name()
13     super(self)
14   end
15   
16   def startTime()
17     super(self)
18   end
19   
20   def finishTime()
21     super(self)
22   end
23   
24 end
25
26 #=============================
27 # WorkStation Class
28 #=============================
29 class DAG::Workstation < DAG::SdWorkstation
30   
31   def initialize()
32     super()
33   end
34   
35   def name()
36     super(self)
37   end
38   
39 end