requirements from application section

23
Requirements from Application section Timing Review Stephane Deghaye 29/02/2008

Upload: martha

Post on 23-Feb-2016

42 views

Category:

Documents


0 download

DESCRIPTION

Requirements from Application section. Timing Review Stephane Deghaye 29/02/2008. Agenda. What timing services Usage summary How to access the timing services Interface Non-functional requirements Examples Implementation constraints Future evolution (InCA) Summary. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Requirements from Application section

Requirements from Application section

Timing Review Stephane Deghaye

29/02/2008

Page 2: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 2

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 3: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 3

What timing services Central timing events

› Events distributed on the timing network Telegram

› Set of info on what the machines are doing Run-time configuration

› What is programmed (Sequence, BCD, SuperCycle)› What is played and why.

Static configuration› Info on the different concepts (machine, user, telegram

groups...) External conditions

› Variables set externally conditioning the sequencing29/02/2008

Page 4: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 4

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 5: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 5

Usage summary (1/2) Central timing events

› Connect to events to trigger computation.› Send events on request (LHC, Transaction). For Logging, JAPC (Monitoring), SIS, Generic GUIs,

Cesar... Telegram

› Reception of one or several telegram groups› Human readable format For Logging, SIS, FixDisplay, GUIs (Generic/Specific),

LASER...

29/02/2008

Page 6: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 6

Usage summary (2/2) Run-time configuration

› Retrieve SuperCylce length, active users.› Retrieve what was played and why (Normal/Spare). For Fault Statistics (Logging), LSA, FixDisplay, Generic

GUIs, Cesar... Static configuration

› List of available users, central events, machine, telegram groups...

For LSA, Sequencer, Generic GUIs... External conditions

› Acquisition and control For Logging (read-only) and SIS (read/write)

29/02/2008

Page 7: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 7

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 8: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 8

How to access the timing services Interface

The timing services should be accessible through a JAPC interface

Why? Homogenous view with the rest of the low-level control system› Usage of standard components› No need to learn a new API

29/02/2008

Page 9: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 9

How to access the timing services Non-functional requirements

The JAPC implementation must be: Reliable and easy to diagnose

› Dedicated com & distribution should be avoided

Extensible› Add another piece of info should be fast

Able to use transparently a dedicated timing receiver› High reliability cases (SIS)

29/02/2008

Page 10: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 10

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 11: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 11

ExamplePossible use of the CPS user info (hypothetical structure)

29/02/2008

JAPC Monitoring

Specific code

JAPC Parameter: “CPS-TELEGRAM/USER#CURRENT”

Logging

Page 12: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 12

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 13: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 13

Implementation constraints Not strictly AP business but... Parameter structure needs to be defined in

collaboration with AP. Need to understand how the components we

use in our systems work.› Side effect› Reliability› Diagnostics

Strongly encouraged to use standard CO components such as FESA, CMW, SIS, Oracle...

29/02/2008

Page 14: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 14

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 15: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 15

Future evolution – InCA Injection Control renovation going on InCA will bring new concepts & features Better integration of the high-level

parts. Some constraints might be relaxed

E.g. The user name might be less visible

Not for tomorrow

29/02/2008

Page 16: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 16

Future evolution – InCA

InCA

High-level parameter space

Low-level parameter space

FEC 1 FEC 4FEC 3FEC 2

Appl. 1

Appl. 2

Appl. 4

Appl. 3

Set PR.DHZ01 to 10 A on CPS:USER:SFTPRO

Low-level parameter space

Set PR.DHZ01 to 10 A on cycle LHC Pilot

Set PR.DHZ01 to 10 A on CPS:SLOT:6

29/02/2008

Page 17: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 17

Agenda What timing services Usage summary How to access the timing services

› Interface› Non-functional requirements

Examples Implementation constraints Future evolution (InCA) Summary

29/02/2008

Page 18: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 18

Summary Set of timing services and their main

usage identified› Central events› Telegram› Run-time & static configuration info.› External conditions

JAPC interface to these services required Standard components must be used High-reliability installations must be

possible29/02/2008

Page 19: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 19

Question ?Thank you for your attention

29/02/2008

Page 20: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 20

ExampleSubscription to the CPS user using JAPCpublic class TelegramListener implements ParameterValueListener{

/** * Starts the subscription on the telegram group given

*/public void startMonitoring(String telegramGroupName){...}

/* * Receives the updates and prints the result */public void valueReceived(String parameterId, AcquiredParameterValue value){...}

}

29/02/2008

Page 21: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 21

Example - startMonitoring/** * Starts the subscription on the telegram group given */public void startMonitoring(String tlgGrpName){

try { ParameterFactory fact = ParameterFactory.newInstance();Parameter parameter = fact.newParameter(tlgGrpName);

SubscriptionHandle handle = parameter.createSubscription(null, this);

handle.startMonitoring(); } catch (ParameterException e) { System.out.println("Can't subscribe to " + tlgGrpName); }}

29/02/2008

Page 22: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 22

Example - valueReceived/* * Receives the updates and prints the result */public void valueReceived(String parameterId,

AcquiredParameterValue value){String user =

((MapParameterValue)value.getValue()).getString("value"));

System.out.println("Got " + user + " from " + parameterId);}

29/02/2008

Page 23: Requirements from Application section

Timing Review: Requirements from AP Section - S. Deghaye 23

Example - resultTelegramListener() listener = new

TelegramListener();listener.startSubscription(“CPS-TELEGRAM/User”);

-- Output exampleGot SFTPRO from CPS-TELEGRAM/UserGot SFTPRO from CPS-TELEGRAM/UserGot AD from CPS-TELEGRAM/User

29/02/2008