ACCELERATOR OPERATION MANAGEMENT USING OBJECTS*

Similar documents
NIF ICCS Test Controller for Automated & Manual Testing

In-Field Programming of Smart Meter and Meter Firmware Upgrade

Adding a System Call to Plan 9

The NMT-5 Criticality Database

Go SOLAR Online Permitting System A Guide for Applicants November 2012

ESNET Requirements for Physics Reseirch at the SSCL

NFRC Spectral Data Library #4 for use with the WINDOW 4.1 Computer Program

SmartSacramento Distribution Automation

MULTIPLE HIGH VOLTAGE MODULATORS OPERATING INDEPENDENTLY FROM A SINGLE COMMON 100 kv dc POWER SUPPLY

METADATA REGISTRY, ISO/IEC 11179

On Demand Meter Reading from CIS

Testing PL/SQL with Ounit UCRL-PRES

FY97 ICCS Prototype Specification

COMPUTATIONAL FLUID DYNAMICS (CFD) ANALYSIS AND DEVELOPMENT OF HALON- REPLACEMENT FIRE EXTINGUISHING SYSTEMS (PHASE II)

Electronic Weight-and-Dimensional-Data Entry in a Computer Database

ENDF/B-VII.1 versus ENDFB/-VII.0: What s Different?

OPTIMIZING CHEMICAL SENSOR ARRAY SIZES

Stereo Vision Based Automated Grasp Planning

FSEC Procedure for Testing Stand-Alone Photovoltaic Systems

and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

Alignment and Micro-Inspection System

Intelligent Grid and Lessons Learned. April 26, 2011 SWEDE Conference

Development of Web Applications for Savannah River Site

Optimizing Bandwidth Utilization in Packet Based Telemetry Systems. Jeffrey R Kalibjian

Saiidia National Laboratories. work completed under DOE ST485D sponsored by DOE

GA A22720 THE DIII D ECH MULTIPLE GYROTRON CONTROL SYSTEM

ALAMO: Automatic Learning of Algebraic Models for Optimization

LosAlamos National Laboratory LosAlamos New Mexico HEXAHEDRON, WEDGE, TETRAHEDRON, AND PYRAMID DIFFUSION OPERATOR DISCRETIZATION

zorder-lib: Library API for Z-Order Memory Layout

Portable Data Acquisition System

Bridging The Gap Between Industry And Academia

CHANGING THE WAY WE LOOK AT NUCLEAR

Real Time Price HAN Device Provisioning

EMPLOYER CONTRIBUTION AGREEMENT

Large Scale Test Simulations using the Virtual Environment for Test Optimization

GA A22637 REAL TIME EQUILIBRIUM RECONSTRUCTION FOR CONTROL OF THE DISCHARGE IN THE DIII D TOKAMAK

PJM Interconnection Smart Grid Investment Grant Update

High Scalability Resource Management with SLURM Supercomputing 2008 November 2008

DOE EM Web Refresh Project and LLNL Building 280

Leonard E. Duda Sandia National Laboratories. PO Box 5800, MS 0665 Albuquerque, NM

Integrated Volt VAR Control Centralized

Centrally Managed. Ding Jun JLAB-ACC This process of name resolution and control point location

PEP I1 16-Channel Corrector Controller Using BITBUS' Abstract. PEP 11 corrector switching power converters. The design and performance are discussed.

DERIVATIVE-FREE OPTIMIZATION ENHANCED-SURROGATE MODEL DEVELOPMENT FOR OPTIMIZATION. Alison Cozad, Nick Sahinidis, David Miller

for use with the WINDOW 4.1 Computer Program

Information to Insight

Testing of PVODE, a Parallel ODE Solver

Graphical Programming of Telerobotic Tasks

Tim Draelos, Mark Harris, Pres Herrington, and Dick Kromer Monitoring Technologies Department Sandia National Laboratories

TUCKER WIRELINE OPEN HOLE WIRELINE LOGGING

5A&-qg-oOL6c AN INTERNET ENABLED IMPACT LIMITER MATERIAL DATABASE

THE APS REAL-TIME ORBIT FEEDBACK SYSTEM Q),/I..lF j.carwardine and K. Evans Jr.

REAL-TIME MULTIPLE NETWORKED VIEWER CAPABILITY OF THE DIII D EC DATA ACQUISITION SYSTEM

PJM Interconnection Smart Grid Investment Grant Update

NATIONAL GEOSCIENCE DATA REPOSITORY SYSTEM

The APS Control System-Network

Advanced Synchrophasor Protocol DE-OE-859. Project Overview. Russell Robertson March 22, 2017

Cross-Track Coherent Stereo Collections

Washington DC October Consumer Engagement. October 4, Gail Allen, Sr. Manager, Customer Solutions

Final Report for LDRD Project Learning Efficient Hypermedia N avi g a ti o n

Entergy Phasor Project Phasor Gateway Implementation

Charles L. Bennett, USA. Livermore, CA 94550

Southern Company Smart Grid

@ST1. JUt EVALUATION OF A PROTOTYPE INFRASOUND SYSTEM ABSTRACT. Tom Sandoval (Contractor) Los Alamos National Laboratory Contract # W7405-ENG-36

A PROPOSAL FOR MODELING THE CONTROL SYSTEM FOR THE SPANISH LIGHT SOURCE IN UML

GA A26400 CUSTOMIZABLE SCIENTIFIC WEB-PORTAL FOR DIII-D NUCLEAR FUSION EXPERIMENT

IN-SITU PROPERTY MEASUREMENTS ON LASER-DRAWN STRANDS OF SL 5170 EPOXY AND SL 5149 ACRYLATE

Site Impact Policies for Website Use

Implementation of the AES as a Hash Function for Confirming the Identity of Software on a Computer System

Systems Integration Tony Giroti, CEO Bridge Energy Group

Contributors: Surabhi Jain, Gengbin Zheng, Maria Garzaran, Jim Cownie, Taru Doodi, and Terry L. Wilmarth

J!#18 t$~~ ~ C&q! EPICS and its Role in Data Acquisition and Beamline Control

Clusters Using Nonlinear Magnification

MAS. &lliedsignal. Design of Intertransition Digitizing Decomutator KCP Federal Manufacturing & Technologies. K. L.

INCLUDING MEDICAL ADVICE DISCLAIMER

Reduced Order Models for Oxycombustion Boiler Optimization

A COMBINED PLC AND CPU APPROACH TO MULTIPROCESSOR CONTROL

EPICS Add On Products SourceRelease Control

ASTE. NFRC Spectral Data Library #3. Addendum #3 to Window 4.1. for use with the WIND0W 4.1 Computer Program. April 1996.

- Q807/ J.p 7y qj7 7 w SfiAJ D--q8-0?dSC. CSNf. Interferometric S A R Coherence ClassificationUtility Assessment

Physics Department, Brookhaven National Laboratory, Upton, N Y, Physics Division, Los Alamos National Laboratory, Los Alamos, NM 87545

REAL-TIME CONTROL OF DIII D PLASMA DISCHARGES USING A LINUX ALPHA COMPUTING CLUSTER

Optimizing Parallel Access to the BaBar Database System Using CORBA Servers

A REMOTE CONTROL ROOM AT DIII-D

Big Data Computing for GIS Data Discovery

KCP&L SmartGrid Demonstration

Resource Management at LLNL SLURM Version 1.2

Java Based Open Architecture Controller

A VERSATILE DIGITAL VIDEO ENGINE FOR SAFEGUARDS AND SECURITY APPLICATIONS

Collaborating with Human Factors when Designing an Electronic Textbook

BWXT Y-12 Y-12. A BWXT/Bechtel Enterprise COMPUTER GENERATED INPUTS FOR NMIS PROCESSOR VERIFICATION. Y-12 National Security Complex

System Assessment and Validation for Emergency Responders (SAVER) Binocular Laser Rangefinders. (AEL reference number 03OE-02-LASR)

MASTER PNL-SA M. Rosing. June 1995

Use of the target diagnostic control system in the National Ignition Facility

v /4 Quick Short Test Report Technical Publication Transfer Test Hughes Tucson Support Systems Operation MIL-D-28001A (SGML) CTN Test Report AFTB-ID

The ANLABM SP Scheduling System

Real-Time Particulate Filter Soot and Ash Measurements via Radio Frequency Sensing

Productivity and Injectivity of Horizohtal Wells

RECENT ENHANCEMENTS TO ANALYZED DATA ACQUISITION AND REMOTE PARTICIPATION AT THE DIII D NATIONAL FUSION FACILITY

Visualization for the Large Scale Data Analysis Project. R. E. Flanery, Jr. J. M. Donato

Transcription:

LBL-3644: LSGN-21( UC4( ACCELERATOR OPERATION MANAGEMENT USING OBJECTS* H. Nishimura, C. Timossi, and M. Valdez Advanced Light Source Accelerator and Fusion Research Division Lawrence Berkeley Laboratory University of California Berkeley, CA 94720 April 1995 Paper presented at the 1995 Particle Accelerator Conference, Dallas, TX, May 1-5/1995 This work was supported by the Director, Office of Energy Research, Office of Basic Energy Sciences, Materials Sciences Division, of the U. S.Department of Energy, under Contract No. DE-ACO3-76SFOOO98.

DISCLAIMER This report was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor any agency thereof, nor any of their employees, make any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

DISCLAIMER Portions of this document may be illegible in electronic image products. Images are produced from the best available original document.

ACCELERATOR OPERATION MANAGEMENT USING OBJECTSH. Nishirnura, C. Timossi, M. Valdez, Lawrence Berkeley Laboratory, Berkeley, CA 94720 USA Conflicts over control of shared devices or resources in an accelerator control system, and problems that can occur A. Requirements due to applications performing conflicting operations, are The Operation Management System is configured with a usually resolved by accelerator operators. For these conflicts set of accelerator operations, and each operation having a list to be detected by the control system, a model of accelerator operation must be available to the system. We present a design for an operation management system addressing the issues of operations management using the language of Object-Oriented Design (OOD). A possible implementation using commercially available software tools is also presented. of necessary resources. The system must not allow conflicting operations to occur. There are essentially two types of conflicts: operational and resource. Resource conflicts occur when two operations attempt to control or lock the same resource (e.g., a bend magnel) Operational conflicts do not occur on a resource level, but rather when one operation is able to affect another. If an attempt is made to start a conflicting operation, the system will identify the source of the conflict but will not attempt to preempt any of I. THE PROBLEM OF OPERATION the active operations. When any type of conflict occurs the MANAGEMENT system will identify the source of the conflict by computer The Advanced Light Source (ALS) [l] is a facility host name, operation name, and, if necessary, resource name. operated at Lawrence Berkeley Laboratory to produce light Since control operations are performed across a network of for researchers. The faciiity, composed of an accelerator heterogeneous computers, the system must also operate in surrounded by optical beamlines, operates in many states this environment. such as start-up and shut-down, injection, and production with light being used by experimenters. Many activities or B. Object-Oriented Design operations are typically in progress during each of these Although there are slight differences in OOD states; the danger is, that they may conflict. For example, methodologies, our design process was typical. First we when the storage ring is filling it is not appropriate for the identified the objects and their relationships (referred to as control system to perform closed orbit correction. the static model). Next we examined typical scenarios for Conversely, during production, orbit correction should be the system to determine the objects' methods (referred to as active but it should have exclusive control of resources on the dynamic model). Finally, we repeated the preceding which it depends, such as corrector magnets. Also, steps until a model spanning a useful number of scenarios is depending on the state of the accelerator, certain operations complete. In fact, we are still iterating through this process. should not be allowed at all. Certainly, calibrating beam position monitors while orbit correction is active, could C. Sofiware Tools result in the unwanted loss of beam. Ultimately, these types We started the design wanting to take advantage of one of conflicts are prevented by the good sense of the operations of the new OOD tools which would not only aid in the design crew, but it Seems reasonable that a system that had phase, but also in the implementationphase with its ability to knowledge about the operation of the acceierator could generate C# code. Since much of our existing application prevent these conflicts. code is in Ctt, code generation was certainly useful in a tool. We worked with two methodologies described by: II. THE DESIGN PROCESS Rumbaugh'[2], and B m h [3]. Also, we used two different Before starting the design, we first had to decide on the software tools: OMTool[4] and Rational Rose/C+k [a. Our requirements but we were also very interested in methods choice of the Booch methodology for this design, was driven and tools for supporting object-oriented design. We looked at by our preference for Rational Rose (both the tools and the methodologies are going to be merged). We chose the two methodologies and tools. Objectstore Object Oriented Database [6] for storing persistent data because of its transparency in C++ programming, its support of data models we wanted to use Work supported by the Director. Office of Energy Research, Office of Basic Energy Sciences, Material Sciences Division, U.S. Department of Enugy, under Contract No.DE-AC03-76SF0098 1

B. Starting an Operation (e.g., lists and sets), and its locking model that we hoped to use to support resource locking. III. THE DESIGN: CONCEPT During the design phase, we attempt to model the behavior of the operations management system. The modeling process consists of first identifying the classes and then examining operational scenarios.tomake sure the model is complete. 2 Activate (Operation) A. The Object Model 1:Start() 4 0 G 4: Add (operation) Client opust ) Starting a new operation: 1: The client stans the operation. 2: If the operation doesn't conflictwith another operation 3: and it can open the resources it needs, 4: then operation Is added to the list of active operations. I L- Figure 1: Class Diagram Figure 2 Object Diagram Figure 2 is the object diagram (dynamic model) of the particular scenario in which a new operation is invoked. The (closed) clouds represent specific instances of objects, with the lines representing messages flowing between the objects. The arrow points to the receiver of the message, and is labeled with the method that is invoked in the receiver. Figure 2 reads: A Client (object) does a Start() on a new Operation. The new Operation asks the Operation Manager to Active() it. The Operation Manager determines if an operational conflict exists with the currently active operations contained in the OpList object and the new Operation. If none exist then the new Operation is added to the OpLiist object. IfActivare() returns successfully, the new Operation then attempts to Open() its resources. If the Open() succeeds, then the Client can manipulate its resources and continue. Figure 1 is the class diagram (sfaticmodel)of the system in Booch notation. Briefly, the broken clouds represent the cfusses (usually the nouns in the statement of the problem). We used the convention of capitalizing class names and IV. THE DESIGN DETAL objects. The lines name the relationships between the classes. These lines are adorned with circles denoting the type of relationship (open represents uses and closed A. Operation An operation object contains a unique identifier and a represents has-a) and numbers representing the cardinality. Figure 1 reads: exactly one Client (class) uses n (many) list of Resource Spec objects. Each of which identifies some Operations along with an Operation Manager. One resource that is needed for the operation to begin. When an Operation uses many Resources, contains many Resource new operation starts, it uses the Operation Manager to check Specs and uses one Operation Manager which'contains an for conflicting operations. It then uses its Resource Spec list to identify the resources it needs and attempts to lock them. OpLiit. 2

C. Resource Spec The Resource Spec objects contain the resource information needed by the operation. Each Resource Spec object is maintained in a database and includes a resource name and the default seuings or parameters for that particular resource. Because the default parameters or seuings are included in the Resource Spec objects and not the Resource object itself, an operation can easily have variances of itself. A. Object-OrientedDesign D. Resource The Resource objects are used by the operation simply to provide a way in which accelerator resources can be locked. The Resource objects are maintained in a database preconfigured with the available accelerator resources. In some cases, exclusive write access to a resource is required, due either to the nature of the operation or to the nature of the resource. In either case, the resource is marked with the identifier of the operation with exclusive access. Also the host computer of the locking client and client information is kept in this object as well. This is useful for knowing which client on which computer is holding what devices. In general, the identifier of each operation using the resource is kept in the resource object as well as the host computer that the client is located. design changes. We have also found that the simple principle of separating the design into static and dynamic models provides a useful approach to the design, at least for small systems. Although this system is not yet complete, the process which allows us to expand and eventually complete it remains the same. E. Starting an Operation To startup successfully, an operation must be able to mark each resource object in the database to indicate that it is in use by the operation. If one of the resources cannot be marked, because another operation has an exclusive lock, the operation must give up and restore the database to its initial state. Further, race conditions between operations simultaneously marking resources must be prevented. These requirementsare implemented using Objectstore transactions and the locking model; both features are designed to assure the database has a consistent state. The new operation first opens a transaction to the resource database. It can then read to see if any other operation is using the resources it needs. If the resource is free, the operation can put its signature in the object, thus enabling other operations to see which client on what host is using a particular resource. The write to a resource object will either put a write lock on the database, preventing any other operations from writing to it, or will Both the methodologies and the tools are evolving (the Rumbaugh and Booch methods are merging for instance). They are new enough that changes are still coming rapidly, but they are stable enough that some useful principals and tools are pres.ent. Certainly, the tools are already worth the investment in time to learn to use them. At worst, they produce quality documentation for a design, at best they generate, and regenerate code and documentation as the B. Future'Work The current model lacks the ability to identify operations that only partly conflict. This means that operations that do not necessarily operationally conflict throughout their whole extent are forced to avoid each other. For example, suppose Operation A and Operation B both conflict only in the beginning of their operations. This model would not allow them to be active together regardless of where they were within their own operational extent. VI.REFERENCES [l] "1-2 GeV Synchrotron Radiation Source, Conceptual Design Report," LBL PUB-SI72 Rev. LBL,1986. A. Jackson, "Commissioning and Performance of the Advanced Light Source", IEEE PAC93, 93CH32797(1993)1432. [2] James Rumbaugh et al. Object-Oriented Modeling and Design. Prentice Hall. 1991. [3] Grady Booch. Object-Oriented Analysis and Design. Benjamin/Cummings. 1994. [4] OMTool, GE Advanced Concepts Center, King of Prussia, PA. [5]Rational Rose/C++, Rational Software Corporation, Santa Clara, CA. [6] Objectstore, Object Design Inc.. Burlington, MA.