File indexing completed on 2025-01-18 09:15:23
0001
0002 require './ruby/variator/variator_base.rb'
0003
0004 class Variator < VariatorBase
0005 def initialize
0006 super
0007
0008 @varied_settings = [
0009 {
0010 :xpath => '//mirror',
0011 :attribute => 'focus_tune_x',
0012 :function => @@center_delta,
0013 :args => [0, 20],
0014 :count => 3,
0015 },
0016 {
0017 :xpath => '//mirror',
0018 :attribute => 'focus_tune_z',
0019 :function => @@center_delta,
0020 :args => [30, 30],
0021 :count => 3,
0022 },
0023 {
0024 :xpath => '//sensors//sphere',
0025 :attribute => 'radius',
0026 :function => @@center_delta,
0027 :args => [140, 40],
0028 :count => 3,
0029 :label => :sensor_sphere_radius,
0030 },
0031 ]
0032
0033 @derived_settings = [
0034 {
0035 :xpath => '//sensors//sphere',
0036 :attribute => 'centerz',
0037 :derivation => Proc.new{ |value| 50.0 - value[:sensor_sphere_radius] },
0038 },
0039 ]
0040
0041 @simulation_pipelines = @@test_optics
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 end
0052 end