XAL Framework and Applications

Arya MirSoftware and s/w Development

Mar 28, 2012 (5 years and 9 months ago)

516 views

XAL is a Java framework for rapidly developing accelerator based applications. • Had its beginnings in UAL but is now independent. • Provides common tools for the entire accelerator. • Primarily built to accommodate SNS but is quite general.

A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
Thoma
s
P
e
laia II
SNS
A
c
celer
a
tor Phy
s
ics R&D S
t
aff
J
u
ne 18￿20
,
2003
XAL F
r
ame
w
o
rk and

Applications
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

Chris
A
l
l
en ￿LANL￿

Chungming P
.
Chu ￿ORNL￿

J
o
hn G
a
lambos ￿ORNL￿

W
o
lf￿Diet
e
r Klotz ￿ESRF￿

C
r
aig M
c
Chesney ￿LANL￿

Dan Otta
v
io ￿BNL￿

Thoma
s
P
e
laia ￿ORNL￿

Andrei Shishlo ￿ORNL￿
A
c
tive De
v
eloper
s
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

N
i
cholay M
a
litsky ￿BNL￿

P
e
regrine M
c
Gehee ￿LANL￿

N
i
ck P
a
tt
e
ngale ￿formerl
y
at LANL￿

Cosylab G
r
oup

EPICS Community
A
c
knowledgements
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

XAL is a J
a
v
a f
r
ame
w
o
rk for rapidl
y

de
v
eloping acc
e
lerat
o
r ba
s
ed applications.

H
a
d its beginnings in U
A
L but is now

independent.

P
r
o
v
ides c
o
mmon t
o
ols for the entire

acc
e
lerat
o
r
.

P
r
imaril
y
built t
o
acc
o
mmodat
e
SNS but is

quit
e
general.
What is
X
AL?
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

Al
l
ow rapid de
v
elopment of robust

applications

De
v
elop c
o
mponents onc
e
and share them

across applications

H
a
v
e a c
o
mmon look and feel for al
l

applications

De
v
elop intuitive, rich human int
e
rfac
e
s

M
a
intain good performanc
e

Suppor
t
online modeling
Goals
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
Sample S
u
bset of
X
AL
A
ppl
i
cations
Application
Description
Orbit Correction
M
o
nit
o
r and c
o
rrect the orbit
MPS P
o
st M
o
r
t
e
m
M
o
nit
o
r MPS for c
o
ncurrent faults

and order sequential
l
y
Orbit Diff
erenc
e
Changes ma
g
net fi
eld and c
o
mpares

orbit diff
erenc
e
s of machine a
g
ainst

the model
Xio
Browse de
v
ic
e
s by ty
p
e and display live

data in tabular and graphical forms
Sc
o
pe
A

vir
t
ual sc
o
pe that plots live

wa
v
eform PV
s
t
e
mporal
l
y
aligned
XYZ PV

Correlat
o
r
Al
l
ows the user t
o
select tw
o
or three

PV
s
and plot their c
o
rrelat
e
d paths
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
T
o
p Le
v
el P
a
ckages
go
v
.
sns
application
apps
ca
db2xal
jca
t
o
ols
xal
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

P
r
o
v
ides a c
o
mmon look and feel t
o
al
l
of our

applications

Generic and one acc
e
lerat
o
r theme

Conforms t
o
familiar user int
e
rfac
e
guidelines

Document ba
s
ed

F
a
cilitat
e
s rapid application de
v
elopment

Minimal boundaries on the de
v
eloper

Ea
s
il
y
ext
e
nsible
Appl
i
cation F
r
a
me
w
o
rk
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

ApplicationA
d
apt
o
r

H
o
oks t
o
handle application e
v
ents

Defi
nes application attribut
e
s

X
a
lDocument

H
a
ndle document e
v
ents and beha
v
iors

X
a
lW
i
ndow

M
a
in window for a document
Appl
i
cation Classes t
o
S
u
bclass
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
Some
A
ppl
i
cation Scr
e
enshots
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
F
a
mi
l
i
a
r Look and F
e
el for F
r
e
e

F
a
miliar M
e
nus and

c
o
mmands

Convenienc
e
actions

M
u
lti￿document

paradigm

Standard output and

error c
o
nsole

H
u
man int
e
rfac
e
cues

I
n
herit se
v
eral f
r
ee

application features
Sc
o
pe
A
ppl
i
cation
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

F
a
cilitat
e
rapid de
v
elopment

Some pro
v
ide a c
o
mmon look and feel

A

fe
w
examples among dozens of current t
o
ols:

GUI c
o
mponents and utilities

data mana
g
ement

char
t
ing

math

c
o
rrelat
o
r
T
o
ols
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

T
w
o
packa
g
es: go
v
.
sns.ca and go
v
.
sns.jca

go
v
.
sns.ca pro
v
ides a c
o
nvenient, abstract layer

for generic channel acc
e
ss

Our applications and the
X
AL f
r
ame
w
o
rk

uses this packa
g
e alone for channel acc
e
ss

go
v
.
sns.jca is an adapt
o
r that bridges go
v
.
sns.ca

with a slightl
y
modifi
ed version of jca
Channel
A
c
c
e
ss
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

Oracle databa
s
e holds the acc
e
lerat
o
r

defi
nition which c
o
nsists of acc
e
lerat
o
r

sequenc
e
s, de
v
ic
e
s and PV
s

The acc
e
lerat
o
r defi
nition is c
o
pied int
o
an

XML fi
le

XAL reads the
X
ML fi
le and generat
e
s an

object graph vie
w
of the acc
e
lerat
o
r

A
c
c
o
mmodat
e
s o
v
erriding and ext
e
nsion

Online model generat
e
s a model specifi
c vie
w

of the acc
e
lerat
o
r
A
c
c
e
ler
a
t
o
r I
n
put
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

A
c
c
e
lerat
o
r c
o
ntains acc
e
lerat
o
r sequenc
e
s

A
c
c
e
lerat
o
r sequenc
e

c
o
rresponds t
o
a physical section of the

machine

c
o
ntains acc
e
lerat
o
r nodes and sequenc
e
s

A
c
c
e
lerat
o
r node

One acc
e
lerat
o
r node per physical de
v
ic
e

N
o
drifts
SMF Object Gr
a
ph
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
A
c
c
e
ler
a
t
o
r H
i
er
a
r
c
hy
A
c
c
e
lerat
o
r
MEBT
DTL
Ring
HEBT
CCL
SCL
QH01
DCH01
DCV01
BPM01
...
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y
C
o
mmon
A
c
c
e
ler
a
t
o
r N
o
des

One cla
s
s per de
v
ic
e
ty
p
e

M
a
g
nets

Bends, Correct
o
rs, Quadr
u
poles

Dia
g
nostics

BPM, BCM

RF de
v
ic
e
s

Generic

Complet
e
l
y
data driven ￿no specifi
c cla
s
s￿
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

Ba
s
ed on U
A
L Element/Algorithm/P
r
obe

archit
e
cture

C
a
lculat
e
s twiss paramet
e
rs and transfer

matric
e
s

Data synchronization for live anal
y
sis

M
o
del vie
w
is generat
e
d f
r
om SMF vie
w
but

ha
s
drifts and element slic
e
s which are

appropriat
e
for model calculations
Onl
i
ne M
o
del
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

M
o
v
e t
o
JCA

2.0 when it is relea
s
ed

Col
l
aborat
e
with other JCA

stak
e
holders

Complet
e
the online model de
v
elopment

Begin design and de
v
elopment of an a
g
ent
￿
ba
s
ed archit
e
cture

W
r
it
e

se
v
eral
applications
P
r
e
sent
A
c
tivities
A
c
celer
a
tor Phy
s
ics Group
O
a
k Ridge N
a
tional L
a
bor
a
tor
y

XAL ha
s
pro
v
ided a rapid de
v
elopment

environment for de
v
eloping acc
e
lerat
o
r

physics applications in J
a
v
a

XAL ha
s
pro
v
en t
o
be fl
exible enough t
o
meet

ne
w
chal
l
enges and demands

Our experienc
e
with
X
AL ha
s
been positive

F
o
r more information and resourc
e
s plea
s
e

visit:
http://www
.
sns.gov/APGr
o
up/appP
r
o
g/xal/xal.htm
C
o
nclusion