OSDN Git Service

create mock get_vacuum_status
[vem/vem.git] / vem / mock.rb
index 839bc0e..95e4a61 100755 (executable)
@@ -27,11 +27,19 @@ class MockControl < VEM
       :imageBeamShift => {:x => 0, :y => 0},
       :focus => 0,
       :defocus => 0,
-      :objStg => {:x => 0, :y => 0},
-      :condenserStg => {:x => 0, :y => 0}
+      :objStg => {:x => 0, :y => 0}
     },
       :ill => {
-      :spotSizeIndex => 0
+      :spotSizeIndex => 0,
+      :condenserStg => {:x => 0, :y => 0}
+    },
+      :vacuum => {
+      :p1 => 1,
+      :p2 => 2,
+      :p3 => 3,
+      :p4 => 4,
+      :p5 => 5,
+      :p8 => 8
     }
     }
     @send_size = 2048
@@ -139,5 +147,11 @@ class MockControl < VEM
     return img_array
   end 
 
+  def get_vacuum_status
+    puts "MOCK getVacuumStatus"
+
+    return @params[:vacuum].to_json
+  end
+
 end