-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathListServiceProperties.jsp
More file actions
42 lines (38 loc) · 1.47 KB
/
ListServiceProperties.jsp
File metadata and controls
42 lines (38 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"
import="ngat.oss.model.*,
ngat.tcm.*,
ngat.icm.*,
ngat.oss.reference.*,
ngat.oss.transport.*,
ngat.phase2.*,
java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Show service properties</title>
<body>
<%
Telescope telescope = (Telescope)RMIConnectionPool.getInstance().getRemoteServiceObject(Const.OCC_TELESCOPE_PROPERTIES);
TelescopeSystem telescopeSystem = telescope.getTelescopeSystem();
SciencePayload sciencePayload = telescopeSystem.getSciencePayload();
double rotatorBaseOffsetRads = sciencePayload.getRotatorBaseOffset();
%>
Rotator base-offset (radians) = <%= rotatorBaseOffsetRads %></br>
<%
InstrumentRegistry ireg = (InstrumentRegistry)RMIConnectionPool.getInstance().getRemoteServiceObject(Const.OCC_INSTRUMENT_REGISTRY);
List instList = ireg.listInstruments();
Iterator instListIter = instList.iterator();
while (instListIter.hasNext()) {
InstrumentDescriptor instrumentDesc = (InstrumentDescriptor) instListIter.next();
String instName = instrumentDesc.getInstrumentName();
InstrumentCapabilitiesProvider instCapProv = ireg.getCapabilitiesProvider(instrumentDesc);
double instRotOffset = instCapProv.getCapabilities().getRotatorOffset();
%>
<%= instName %> rotator offset = <%= instRotOffset %></br>
<%
}
%>
</body>
</html>