Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lmc-base-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
lmc-base-classes
Commits
2fbb3061
Commit
2fbb3061
authored
7 years ago
by
kmadisa
Browse files
Options
Downloads
Patches
Plain Diff
Renaming PDU.* -> Pdu.*
parent
982a6bf6
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
refelt/refelt/PDU.py
+0
-414
0 additions, 414 deletions
refelt/refelt/PDU.py
refelt/refelt/PDU.xmi
+0
-513
0 additions, 513 deletions
refelt/refelt/PDU.xmi
refelt/refelt/Pdu.xmi
+1
-1
1 addition, 1 deletion
refelt/refelt/Pdu.xmi
with
1 addition
and
928 deletions
refelt/refelt/PDU.py
deleted
100644 → 0
+
0
−
414
View file @
982a6bf6
# -*- coding: utf-8 -*-
#
# This file is part of the PDU project
#
#
#
# Distributed under the terms of the GPL license.
# See LICENSE.txt for more info.
"""
PDU
Ref (Reference Elt) PDU device
"""
# PyTango imports
import
PyTango
from
PyTango
import
DebugIt
from
PyTango.server
import
run
from
PyTango.server
import
Device
,
DeviceMeta
from
PyTango.server
import
attribute
,
command
from
PyTango.server
import
device_property
from
PyTango
import
AttrQuality
,
DispLevel
,
DevState
from
PyTango
import
AttrWriteType
,
PipeWriteType
from
SKABaseDevice
import
SKABaseDevice
# Additional import
__all__
=
[
"
PDU
"
,
"
main
"
]
class
PDU
(
SKABaseDevice
):
"""
Ref (Reference Elt) PDU device
"""
__metaclass__
=
DeviceMeta
# -----------------
# Device Properties
# -----------------
# ----------
# Attributes
# ----------
system_voltage
=
attribute
(
dtype
=
'
float
'
,
)
system_current
=
attribute
(
dtype
=
'
float
'
,
)
port_1_name
=
attribute
(
dtype
=
'
str
'
,
)
port_2_name
=
attribute
(
dtype
=
'
str
'
,
)
port_3_name
=
attribute
(
dtype
=
'
str
'
,
)
port_4_name
=
attribute
(
dtype
=
'
str
'
,
)
port_5_name
=
attribute
(
dtype
=
'
str
'
,
)
port_6_name
=
attribute
(
dtype
=
'
str
'
,
)
port_8_name
=
attribute
(
dtype
=
'
str
'
,
)
port_9_name
=
attribute
(
dtype
=
'
str
'
,
)
port_10_name
=
attribute
(
dtype
=
'
str
'
,
)
port_11_name
=
attribute
(
dtype
=
'
str
'
,
)
port_12_name
=
attribute
(
dtype
=
'
str
'
,
)
port_12_current
=
attribute
(
dtype
=
'
float
'
,
)
port_1_current
=
attribute
(
dtype
=
'
float
'
,
)
port_2_current
=
attribute
(
dtype
=
'
float
'
,
)
port_3_current
=
attribute
(
dtype
=
'
float
'
,
)
port_4_current
=
attribute
(
dtype
=
'
float
'
,
)
port_5_current
=
attribute
(
dtype
=
'
float
'
,
)
port_6_current
=
attribute
(
dtype
=
'
float
'
,
)
port_7_current
=
attribute
(
dtype
=
'
float
'
,
)
port_8_current
=
attribute
(
dtype
=
'
float
'
,
)
port_9_current
=
attribute
(
dtype
=
'
float
'
,
)
port_10_current
=
attribute
(
dtype
=
'
float
'
,
)
port_11_current
=
attribute
(
dtype
=
'
float
'
,
)
port_7_name
=
attribute
(
dtype
=
'
str
'
,
)
port_1_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_2_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_3_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_4_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_5_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_6_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_7_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_8_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_9_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_10_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_11_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
port_12_enabled
=
attribute
(
dtype
=
'
bool
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
# ---------------
# General methods
# ---------------
def
init_device
(
self
):
SKABaseDevice
.
init_device
(
self
)
def
always_executed_hook
(
self
):
pass
def
delete_device
(
self
):
pass
# ------------------
# Attributes methods
# ------------------
def
read_system_voltage
(
self
):
return
0.0
def
read_system_current
(
self
):
return
0.0
def
read_port_1_name
(
self
):
return
""
def
read_port_2_name
(
self
):
return
""
def
read_port_3_name
(
self
):
return
""
def
read_port_4_name
(
self
):
return
""
def
read_port_5_name
(
self
):
return
""
def
read_port_6_name
(
self
):
return
""
def
read_port_8_name
(
self
):
return
""
def
read_port_9_name
(
self
):
return
""
def
read_port_10_name
(
self
):
return
""
def
read_port_11_name
(
self
):
return
""
def
read_port_12_name
(
self
):
return
""
def
read_port_12_current
(
self
):
return
0.0
def
read_port_1_current
(
self
):
return
0.0
def
read_port_2_current
(
self
):
return
0.0
def
read_port_3_current
(
self
):
return
0.0
def
read_port_4_current
(
self
):
return
0.0
def
read_port_5_current
(
self
):
return
0.0
def
read_port_6_current
(
self
):
return
0.0
def
read_port_7_current
(
self
):
return
0.0
def
read_port_8_current
(
self
):
return
0.0
def
read_port_9_current
(
self
):
return
0.0
def
read_port_10_current
(
self
):
return
0.0
def
read_port_11_current
(
self
):
return
0.0
def
read_port_7_name
(
self
):
return
""
def
read_port_1_enabled
(
self
):
return
False
def
write_port_1_enabled
(
self
,
value
):
pass
def
read_port_2_enabled
(
self
):
return
False
def
write_port_2_enabled
(
self
,
value
):
pass
def
read_port_3_enabled
(
self
):
return
False
def
write_port_3_enabled
(
self
,
value
):
pass
def
read_port_4_enabled
(
self
):
return
False
def
write_port_4_enabled
(
self
,
value
):
pass
def
read_port_5_enabled
(
self
):
return
False
def
write_port_5_enabled
(
self
,
value
):
pass
def
read_port_6_enabled
(
self
):
return
False
def
write_port_6_enabled
(
self
,
value
):
pass
def
read_port_7_enabled
(
self
):
return
False
def
write_port_7_enabled
(
self
,
value
):
pass
def
read_port_8_enabled
(
self
):
return
False
def
write_port_8_enabled
(
self
,
value
):
pass
def
read_port_9_enabled
(
self
):
return
False
def
write_port_9_enabled
(
self
,
value
):
pass
def
read_port_10_enabled
(
self
):
return
False
def
write_port_10_enabled
(
self
,
value
):
pass
def
read_port_11_enabled
(
self
):
return
False
def
write_port_11_enabled
(
self
,
value
):
pass
def
read_port_12_enabled
(
self
):
return
False
def
write_port_12_enabled
(
self
,
value
):
pass
# --------
# Commands
# --------
@command
(
)
@DebugIt
()
def
Reset
(
self
):
pass
# ----------
# Run server
# ----------
def
main
(
args
=
None
,
**
kwargs
):
return
run
((
PDU
,),
args
=
args
,
**
kwargs
)
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
refelt/refelt/PDU.xmi
deleted
100644 → 0
+
0
−
513
View file @
982a6bf6
This diff is collapsed.
Click to expand it.
refelt/refelt/Pdu.xmi
+
1
−
1
View file @
2fbb3061
<?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem
xmi:version=
"2.0"
xmlns:xmi=
"http://www.omg.org/XMI"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:pogoDsl=
"http://www.esrf.fr/tango/pogo/PogoDsl"
>
<classes
name=
"PDU"
pogoRevision=
"9.6"
>
<description
description=
"Ref (Reference Elt) PDU device"
title=
"PDU"
sourcePath=
"/home/
kat/git
/levpro/refelt/refelt"
language=
"PythonHL"
filestogenerate=
"XMI file"
license=
"GPL"
copyright=
""
hasMandatoryProperty=
"false"
hasConcreteProperty=
"false"
hasAbstractCommand=
"false"
hasAbstractAttribute=
"false"
>
<description
description=
"Ref (Reference Elt) PDU device"
title=
"PDU"
sourcePath=
"/home/
tango-cs/src
/levpro/refelt/refelt"
language=
"PythonHL"
filestogenerate=
"XMI file
,Code files
"
license=
"GPL"
copyright=
""
hasMandatoryProperty=
"false"
hasConcreteProperty=
"false"
hasAbstractCommand=
"false"
hasAbstractAttribute=
"false"
>
<inheritances
classname=
"Device_Impl"
sourcePath=
""
/>
<inheritances
classname=
"SKABaseDevice"
sourcePath=
"../../skabase/SKABaseDevice"
/>
<identification
contact=
"at ska.ac.za - cam"
author=
"cam"
emailDomain=
"ska.ac.za"
classFamily=
"OtherInstruments"
siteSpecific=
""
platform=
"All Platforms"
bus=
"Not Applicable"
manufacturer=
"SKASA"
reference=
"SKA-SKAObsDevice"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment