aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/stif/reflex_synchronization.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb
index 68f7fc621..fee54f4c1 100644
--- a/lib/stif/reflex_synchronization.rb
+++ b/lib/stif/reflex_synchronization.rb
@@ -71,12 +71,15 @@ module Stif
end
def stop_area_area_type entry, method
+ from = method.last
+ from = 'r' if entry['OBJECT_STATUS'] == 'REFERENCE_OBJECT'
+ from = 'p' if entry['OBJECT_STATUS'] == 'LOCAL_OBJECT'
+ type = entry['TypeOfPlaceRef']
+
if entry['type'] == 'Quay'
- type = 'zder' if entry['OBJECT_STATUS'] == 'REFERENCE_OBJECT'
- type = 'zdep' if entry['OBJECT_STATUS'] == 'LOCAL_OBJECT'
+ type = "zde#{from}"
else
- type = entry['TypeOfPlaceRef']
- type = "#{type.to_s}#{method.last}" unless type == 'LDA'
+ type = "zdl#{from}" if type != 'LDA'
end
type.downcase
end