aboutsummaryrefslogtreecommitdiffstats
path: root/idl/gias/gias.idl
blob: 89aa20bbaac2c16c946e193c37461a019fadb11a (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
#ifndef GIAS_IDL
#define GIAS_IDL

//***************************************************************
  //*      APPROVED via RFC N01-0268 on 6 August 2001
//***************************************************************


//***************************************************************
//*
//*           The Geospatial and Imagery Access Service
//*
//*
//*     Description: Defines the data types and interfaces needed
//*     to support search, retrieval and access to geospatial
//*     data such as images, maps charts and their supporting
//*     data
//*
//*
//*
//*     History:
//*     Date            Author          Comment
//*     -----           --------        ------------
//*     15 May 97       D. Lutz         Initial release for review
//*     2 July 97       D. Lutz         Released for TEM Review
//*     11 July 97      D. Lutz         Changes based on 2 July TEM
//*     18 July 97      D. Lutz         Released for NIMA CCB
//*     24 Oct 97       D. Lutz         Changes based on 7 Oct TEM
//*     14 Nov 97       D. Lutz         Changes based on 4 Nov TEM
//*     17 Dec 97       D. Lutz	Changes based on 9 Dec TEM
//*     15 Apr 98       J. Baldo        changes based on Mar TEM
//*     7  May 98       D.Lutz        Changes based on 1 May TEM
//*     2  Jul   98        J. Baldo/D. Lutz Changes based
//*					on 22-23 Jun TEM Requests - GIAS 3.2
//*     2  Jul 98 (J. Baldo): Callback module has been removed
//*		from previous GIAS 3.2 specification release
//*		5 June 1998 and will be included in GIAS 3.3
//*	  5 Nov 98		D. Lutz		Added first version of UpdateMgr
//*
//*	10 Mar 99		J. Baldo		Changes based on March 99 TEM
//*
//*     5 August		D. Lutz		 Mods from 3-4 August UIP WG.
//*	18 Februray 2000	D. Lutz		New Generic Exception Model
//*
//*
//*
//*
//***************************************************************

//***************************************************************
//*     The USIGS Common Object Specification (UCOS)  contains
//*     all the basic data types and interfaces common across
//*             USIGS
//***************************************************************

#include "uco.idl"
#include "cb.idl"
#include "uid.idl"

//***************************************************************
//*
//*     Module GIAS
//*
//*
//*     Description: The main module for the Geospatial & Imagery
//*             Access Service
//*
//*
//***************************************************************

module GIAS
{

//Forward references for all interfaces, just for convenience

// The Library itself
  interface Library;


// Abstract classes that help define the managers
  interface LibraryManager;
  interface RequestManager;
  interface AccessManager;

// Specific managers defined
  interface OrderMgr;
  interface CreationMgr;
  interface UpdateMgr;
  interface CatalogMgr;
  interface StandingQueryMgr;
  interface ProductMgr;
  interface IngestMgr;
  interface QueryOrderMgr;
  interface DataModelMgr;
//interface VideoMgr;

// The abstract request objects
  interface Request;

// Specific requests defined
  interface OrderRequest;
  interface CreateRequest;
  interface CreateMetaDataRequest;
  interface UpdateRequest;
  interface SubmitQueryRequest;
  interface SubmitStandingQueryRequest;
  interface SetAvailabilityRequest;
  interface HitCountRequest;
  interface GetParametersRequest;
  interface IngestRequest;
  interface SubmitQueryOrderRequest;
  interface GetRelatedFilesRequest;
  interface CreateAssociationRequest;
  interface UpdateByQueryRequest;


//***************************************************************
//*      DataTypes re-used from UCOS
//***************************************************************

  typedef UCO::NameValueList PropertyList;

  typedef UCO::Rectangle GeoRegion;
enum GeoRegionType {
	LINE_SAMPLE_FULL,
	LINE_SAMPLE_CHIP,
	LAT_LON ,
ALL,
NULL_REGION};



//***************************************************************
//*      GIAS specific data types
//***************************************************************


enum AvailabilityRequirement
    {
      REQUIRED, NOT_REQUIRED
    };

typedef string UseMode;

typedef sequence <short> RsetList;

enum OrderType {STANDING, IMMEDIATE};

typedef any ProductSpec;

typedef string ProductFormat;
typedef string ImageUniqueIdentifier;
typedef string ImageFormat;
typedef string Compression;
typedef short BitsPerPixel;
typedef string Algorithm;
enum SupportDataEncoding {ASCII, EBCDIC};

typedef sequence < ProductFormat > ProductFormatList;
struct ImageSpec
    {
      ImageFormat imgform;
      ImageUniqueIdentifier imageid;
      Compression comp;
      BitsPerPixel bpp;
      Algorithm algo;
	RsetList rrds;
GeoRegion sub_section;
	GeoRegionType geo_region_type;
	SupportDataEncoding encoding;
    };
typedef sequence < ImageSpec > ImageSpecList;

struct AlterationSpec
    {
      ProductFormat pf;
      ProductSpec ps;
      GeoRegion sub_section;
	GeoRegionType geo_region_type;
    };
typedef sequence < AlterationSpec > AlterationSpecList;

struct PackagingSpec
    {
      string package_identifier;
      string packaging_format_and_compression;
    };


struct TailoringSpec {
	UCO::NameNameList specs;
 };

struct MediaType
    {
      string media_type;
	unsigned short quantity;
    };

typedef sequence < MediaType > MediaTypeList;

struct PhysicalDelivery
 {
string address;
 };

enum DestinationType
    {
FTP, EMAIL, PHYSICAL
    };

union Destination switch (DestinationType)
    {
    case FTP:   	UCO::FileLocation f_dest;
    case EMAIL: 	UCO::EmailAddress e_dest;
    case PHYSICAL:	PhysicalDelivery h_dest;
    };

  typedef sequence < Destination > DestinationList;



struct ValidationResults
    {
     boolean valid;
     boolean warning;
     string details;
    };

typedef sequence < ValidationResults > ValidationResultsList;

typedef UCO::Name RelatedFileType;
typedef sequence<RelatedFileType> RelatedFileTypeList;
struct RelatedFile
 {
  RelatedFileType file_type;
  UCO::FileLocation location;
 };
typedef sequence <RelatedFile> RelatedFileList;

enum ConceptualAttributeType
    {
      FOOTPRINT, CLASSIFICATION, OVERVIEW, THUMBNAIL, DATASETTYPE,
       MODIFICATIONDATE, PRODUCTTITLE, DIRECTACCESS, DIRECTACCESSPROTOCOL, UNIQUEIDENTIFIER, DATASIZE};


typedef string Entity;
typedef string ViewName;
typedef sequence< ViewName > ViewNameList;
struct View {
 ViewName	view_name;
 boolean orderable;
 ViewNameList sub_views;
};

typedef sequence < View > ViewList;


enum DomainType
    {
      DATE_VALUE, TEXT_VALUE, INTEGER_VALUE, FLOATING_POINT_VALUE, LIST,
      ORDERED_LIST, INTEGER_RANGE, FLOATING_POINT_RANGE, GEOGRAPHIC, INTEGER_SET, FLOATING_POINT_SET, GEOGRAPHIC_SET, BINARY_DATA, BOOLEAN_VALUE };

  struct DateRange
    {
      UCO::AbsTime earliest;
      UCO::AbsTime latest;
    };

struct IntegerRange
    {
      long lower_bound;
      long upper_bound;
    };

  struct FloatingPointRange
    {
      double lower_bound;
      double upper_bound;
    };



typedef sequence < IntegerRange > IntegerRangeList;

typedef sequence < FloatingPointRange > FloatingPointRangeList;
union Domain switch (DomainType)
    {

    case DATE_VALUE:                      DateRange d;
    case TEXT_VALUE:                      unsigned long t;
    case INTEGER_VALUE:                   IntegerRange iv;
    case INTEGER_SET:                     IntegerRangeList is;
    case FLOATING_POINT_VALUE:            FloatingPointRange  fv;
    case FLOATING_POINT_SET:              FloatingPointRangeList fps;
    case LIST:                            UCO::NameList l;
    case ORDERED_LIST:                    UCO::NameList ol;
    case INTEGER_RANGE:                   IntegerRange ir;
    case FLOATING_POINT_RANGE:            FloatingPointRange fr;
    case GEOGRAPHIC:                      UCO::Rectangle g;
    case GEOGRAPHIC_SET:                  UCO::RectangleList gs;
    case BINARY_DATA:                     UCO::BinData bd;
    case BOOLEAN_VALUE:				boolean bv;
 };

enum AttributeType
   {
      TEXT,
      INTEGER,
      FLOATING_POINT,
      UCOS_COORDINATE,
      UCOS_POLYGON,
      UCOS_ABS_TIME,
      UCOS_RECTANGLE,
      UCOS_SIMPLE_GS_IMAGE,
      UCOS_SIMPLE_C_IMAGE,
      UCOS_COMPRESSED_IMAGE,
      UCOS_HEIGHT,
      UCOS_ELEVATION,
      UCOS_DISTANCE,
      UCOS_PERCENTAGE,
      UCOS_RATIO,
      UCOS_ANGLE,
      UCOS_FILE_SIZE,
      UCOS_FILE_LOCATION,
      UCOS_COUNT,
      UCOS_WEIGHT,
      UCOS_DATE,
      UCOS_LINESTRING,
	UCOS_DATA_RATE,
	UCOS_BIN_DATA,
	BOOLEAN_DATA,
	UCOS_DURATION
   };


enum RequirementMode
    {
      MANDATORY, OPTIONAL
    };

struct AttributeInformation
    {
      string attribute_name;
      AttributeType attribute_type;
      Domain attribute_domain;
      string attribute_units;
	string attribute_reference;
RequirementMode mode;
      string description;
      boolean sortable;
      boolean updateable;
    };
typedef sequence < AttributeInformation > AttributeInformationList;
struct Association {
string name;
ViewName view_a;
ViewName view_b;
string description;
UCO::Cardinality card;
AttributeInformationList attribute_info;
  };

typedef sequence <Association> AssociationList;
typedef sequence < Library > LibraryList;

typedef string ManagerType;
  typedef sequence < ManagerType > ManagerTypeList;

typedef sequence < Request > RequestList;

typedef sequence < UseMode > UseModeList;


struct LibraryDescription
    {
      string library_name;
      string library_description;
      string library_version_number;
    };
typedef sequence < LibraryDescription > LibraryDescriptionList;

struct Query{
ViewName view;
string  bqs_query;
};


typedef UCO::DAGList QueryResults;



enum NamedEventType
{
START_EVENT,
STOP_EVENT,
FREQUENCY_EVENT
};

struct Event {
    string event_name;
    NamedEventType event_type;
    string event_description;
};
typedef sequence < Event > EventList;

enum DayEvent { MON, TUE, WED, THU, FRI, SAT, SUN, FIRST_OF_MONTH, END_OF_MONTH };

struct DayEventTime
{
   DayEvent		day_event;
   UCO::Time		time;
};

enum LifeEventType {ABSOLUTE_TIME, DAY_EVENT_TIME, NAMED_EVENT, RELATIVE_TIME};

union LifeEvent switch ( LifeEventType)
 {
  case ABSOLUTE_TIME: UCO::AbsTime at;
  case DAY_EVENT_TIME: DayEventTime  day_event;
  case NAMED_EVENT: string ev;
  case RELATIVE_TIME: UCO::Time rt;
 };

typedef sequence < LifeEvent > LifeEventList;


struct QueryLifeSpan {
	LifeEvent start;
	LifeEvent stop;
	LifeEventList frequency;
};



  enum Polarity { ASCENDING, DESCENDING };

  struct SortAttribute
  {
     UCO::Name     attribute_name;
     Polarity  sort_polarity;
  };

  typedef sequence < SortAttribute > SortAttributeList;

struct DelayEstimate {
	unsigned long time_delay;
	boolean valid_time_delay;
};
struct ProductDetails {
	MediaTypeList mTypes;
	UCO::NameList benums;
	AlterationSpec aSpec;
	UID::Product aProduct;
	string info_system_name;
	};
typedef sequence <ProductDetails> ProductDetailsList;

struct DeliveryDetails {
	Destination dests;
	string receiver;
	string shipmentMode;
	};
typedef sequence < DeliveryDetails > DeliveryDetailsList;

struct OrderContents {
	string originator;
	TailoringSpec tSpec;
	PackagingSpec pSpec;
	UCO::AbsTime  needByDate;
	string operatorNote;
	short orderPriority;
	ProductDetailsList prod_list;
	DeliveryDetailsList del_list;
	};

struct QueryOrderContents {
	string originator;
	TailoringSpec tSpec;
	PackagingSpec pSpec;
	string operatorNote;
	short orderPriority;
	AlterationSpec aSpec;
	DeliveryDetailsList del_list;
	};

struct AccessCriteria {
	string userID;
	string password;
	string licenseKey;
};
struct PackageElement {
	UID::Product	prod;
	UCO::NameList	files;
	};
typedef  sequence< PackageElement > PackageElementList;

 struct DeliveryManifest {
	string package_name;
	PackageElementList elements;
	};
typedef sequence<DeliveryManifest> DeliveryManifestList;

typedef string CallbackID;

//***************************************************************
  //*			The Exceptions Identifiers
  //*		Note: Three sets of IDL Strings Constants are being used as
  //*		the Exceptions for the GIAS
  //***************************************************************
//			UCO::InvalidInputParameter Exceptions
const string BadAccessCriteriaConst = "BadAccessCriteria";
const string BadAccessValueConst = "BadAccessValue";
const string BadCreationAttributeValueConst = "BadCreationAttributeValue";
const string BadEmailAddressConst = "BadEmailAddress";
const string BadGeoRegionConst = "BadGeoRegion";
const string BadLocationConst = "BadLocation";
const string BadPropertyValueConst = "BadPropertyValue";
const string BadQueryConst = "BadQuery";
const string BadQueryAttributeConst = "BadQueryAttribute";
const string BadQueryValueConst = "BadQueryValue";
const string BadTimeConst = "BadTime";
const string BadUseModeConst = "BadUseMode";
const string UnknownCallBackConst = "UnknownCallBack";
const string UnknownCreationAttributeConst = "UnknownCreationAttribute";
const string UnknownManagerTypeConst = "UnknownManagerType";
const string UnknownProductConst = "UnknownProduct";
const string UnknownPropertyConst = "UnknownProperty";
const string UnknownRequestConst = "UnknownRequest";
const string UnregisteredCallbackConst = "UnregisteredCallback";
const string UnknownUseModeConst = "UnknownUseMode";
const string BadOrderConst = "BadOrder";
const string UnknownViewNameConst = "UnknownViewName";
const string UnknownEntityConst = "UnknownEntity";
const string UnsupportedConceptualAttributeConst = "UnsupportedConceptualAttribute";
const string NoValuesRequestedConst = "NoValuesRequested";
const string BadSortAttributeConst = "BadSortAttribute";
const string NonUpdateableAttributeConst = "NonUpdateableAttribute";
const string BadFileTypeConst = "BadFileType";
const string InvalidCardinalityConst = "InvalidCardinality";
const string UnknownAssociationConst = "UnknownAssociation";
const string InvalidObjectConst = "InvalidObject";
const string UnknownCategoryConst = "UnknownCategory";
const string InvalidEventConst = "InvalidEvent";
const string BadResultAttributeConst = "BadResultAttribute";
const string BadUpdateAttributeConst = "BadUpdateAttribute";
const string ImplementationLimitConst = "ImplementationLimit";

//			UCO::ProcessingFault Exceptions
const string ProductUnavailableConst = "ProductUnavailable";
const string LockUnavailableConst = "LockUnavailable";
const string UnsafeUpdateConst = "UnsafeUpdate";
const string ProductLockedConst = "ProductLocked";

//			UCO::SystemFault Exceptions
const string GeneralSystemFaultConst = "GeneralSystemFault";




//***************************************************************
//*                             The Interfaces
//***************************************************************

//***************************************************************
  //*      interface GIAS::Library.
  //*
  //*     Description: This object represents a Library. It
  //*     provides operations to discover and acquire manager objects,
  //*     which provide access to all the functionality of this
  //*     Library.
  //*
  //***************************************************************

  interface Library
    {

ManagerTypeList get_manager_types ()
		raises (UCO::ProcessingFault, UCO::SystemFault);

      LibraryManager get_manager (in ManagerType manager_type, in
				  AccessCriteria access_criteria)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

	LibraryDescription get_library_description ()
		raises (UCO::ProcessingFault, UCO::SystemFault);

       LibraryDescriptionList get_other_libraries (in AccessCriteria access_criteria)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

    };


//***************************************************************
  //*     Interface GIAS::LibraryManager
  //*
  //*    Description: This (abstract) object defines the basic
  //*    functions common to all types of managers.
  //*
  //*
  //***************************************************************

  interface LibraryManager
    {
    UCO::NameList get_property_names ()
		raises (UCO::ProcessingFault, UCO::SystemFault);

      PropertyList get_property_values (in UCO::NameList
					desired_properties)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

      LibraryList get_libraries ()
		raises (UCO::ProcessingFault, UCO::SystemFault);
    };

//***************************************************************
  //*     Interface GIAS::RequestManager
  //*
  //*     Description: This (abstact) object defines the basic
  //*     functions common to managers that use operations that
  //*     generate request objects.
  //*
  //*
  //***************************************************************

  interface RequestManager
    {

      RequestList get_active_requests ()
		raises (UCO::ProcessingFault, UCO::SystemFault);

      unsigned long get_default_timeout ()
		raises (UCO::ProcessingFault, UCO::SystemFault);

      void set_default_timeout (in unsigned long new_default)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

      unsigned long get_timeout (in Request aRequest)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

      void set_timeout (in Request aRequest, in unsigned long
			new_lifetime)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

      void delete_request (in Request aRequest)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
    };

//***************************************************************
  //*     interface GIAS:: AccessManager
  //*
  //*     Description: Provides functions to check and request the
  //*     availability of Library products for specific purposes
  //*
  //***************************************************************

  interface AccessManager:RequestManager
  {

    UseModeList get_use_modes ()
raises (UCO::ProcessingFault, UCO::SystemFault);
    boolean is_available (in UID::Product product, in UseMode use_mode)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

// Returns the time (in seconds) estimated to put the requested product // into the requested UseMode. DOES NOT request a change in the
// availability  of product.

    unsigned long query_availability_delay (in UID::Product product,
			in AvailabilityRequirement availability_requirement,
					    in UseMode use_mode)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

short  get_number_of_priorities()
raises (UCO::ProcessingFault, UCO::SystemFault);

SetAvailabilityRequest set_availability (in UID::ProductList products, in AvailabilityRequirement availability_requirement, in UseMode use_mode, in short priority)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  };

//***************************************************************
  //*                             The Managers
  //*
  //***************************************************************

//***************************************************************
  //*      interface GIAS::QueryOrderMgr
  //*     Derived from GIAS::LibraryManager and
  //*     GIAS::RequestManager
  //*
  //*     Description: Provides operations to submit a
  //*     query based order.
  //*
  //*
  //***************************************************************


 interface QueryOrderMgr:LibraryManager, RequestManager
  {

    EventList get_event_descriptions()
raises (UCO::ProcessingFault, UCO::SystemFault);

SubmitQueryOrderRequest submit_query_order (

			in Query aQuery,
			in QueryLifeSpan lifespan,
			in OrderType o_type,
			in QueryOrderContents order,
in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);


  };

//***************************************************************
//*      interface GIAS:: VideoMgr
//*     Derived from GIAS::LibraryManager and GIAS::AccessManager
//*
//*     Description: Provides operations to retrieve video data
//*
//*     NOTE: This interface is TBR.
//***************************************************************

//interface VideoMgr : LibraryManager, AccessManager {
  //};

//***************************************************************

//***************************************************************
  //*     interface GIAS:: OrderMgr
  //*     Derived from GIAS:: LibraryManager and GIAS::AccessManager
  //*
  //*     Description: Provides operations to submit orders for Products
  //*     contained in the Library:
  //*
  //*
  //*
  //***************************************************************

interface OrderMgr:LibraryManager, AccessManager
  {


    UCO::NameList  get_package_specifications()
raises (UCO::ProcessingFault, UCO::SystemFault);

   ValidationResults validate_order (in OrderContents order, in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

    OrderRequest order (in OrderContents order, in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  };

//***************************************************************
  //*     interface GIAS:: DataModelMgr
  //*     Derived from GIAS:: LibraryManager
  //*
  //*     Description: Provides operations to discover the elements of the
  //*     data model in use by the library
  //*
  //*
  //*
  //***************************************************************

  interface DataModelMgr:LibraryManager
  {
UCO::AbsTime get_data_model_date (in PropertyList properties)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

UCO::NameList get_alias_categories(in PropertyList properties)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

UCO::NameNameList get_logical_aliases(in string category, in PropertyList properties)
raises( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

string get_logical_attribute_name (in ViewName view_name,in ConceptualAttributeType attribute_type, in PropertyList properties)
       raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

ViewList get_view_names (in PropertyList properties)
        raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

AttributeInformationList get_attributes (in ViewName view_name,in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

AttributeInformationList get_queryable_attributes (in ViewName view_name,in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  UCO::EntityGraph get_entities (in ViewName view_name,in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  AttributeInformationList get_entity_attributes (in Entity aEntity,in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

AssociationList get_associations(in PropertyList properties)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

unsigned short get_max_vertices(in PropertyList properties)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
};

//***************************************************************
  //*      interface GIAS:: CreationMgr
  //*     Derived from GIAS::RequestManager and
  //*     GIAS::LibraryManager
  //*     Description: Provides operations to request/nominate the
  //*     archiving and cataloging of a new product to a Library.
  //*
  //*
  //***************************************************************

  interface CreationMgr:LibraryManager, RequestManager
  {
     CreateRequest create (in UCO::FileLocationList new_product,in RelatedFileList related_files, in UCO::DAG creation_metadata,in PropertyList properties)
 raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

    CreateMetaDataRequest create_metadata (in UCO::DAG creation_metadata, in ViewName view_name, in RelatedFileList related_files,  in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

CreateAssociationRequest create_association( in string assoc_name,
					     in UID::Product view_a_object,
					     in UID::ProductList view_b_objects,
in UCO::NameValueList assoc_info)
				raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
  };




//***************************************************************
  //*      interface GIAS:: UpdateMgr
  //*     Derived from GIAS:: LibraryManager, and GIAS::RequestManager
  //*     Description: Provides operations to modify, extend or delete
  //*     existing catalog entries in a GIAS Library.
  //*
  //*
  //***************************************************************

  interface UpdateMgr: LibraryManager, RequestManager
  {
    void set_lock(in UID::Product lockedProduct)
raises( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
  UpdateRequest update (in ViewName view, in UCO::UpdateDAGList changes, in RelatedFileList relfiles,  in PropertyList properties)
     raises( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
UpdateByQueryRequest update_by_query(in UCO::NameValue updated_attribute,
						in Query bqs_query,

						in PropertyList properties)
 raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
   void release_lock(in UID::Product lockedProduct)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

   void delete_product(in UID::Product prod)
	raises(UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault
);
  };


//***************************************************************
  //*      interface GIAS:: CatalogMgr
  //*     Derived from GIAS::LibraryManager and
  //*    GIAS::RequestManager
  //*
  //*     Description: Provides operations to submit a query for
  //*     processing.
  //*
  //*
  //***************************************************************

  interface CatalogMgr:LibraryManager, RequestManager
  {

    SubmitQueryRequest submit_query (
in Query aQuery,
in UCO::NameList result_attributes,
in SortAttributeList sort_attributes,
in PropertyList properties)
 raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);




    HitCountRequest hit_count (in Query
			       aQuery, in PropertyList properties)
		raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);



  };

//***************************************************************
  //*      interface GIAS::StandingQueryMgr
  //*     Derived from GIAS::LibraryManager and
  //*     GIAS::RequestManager
  //*
  //*     Description: Provides operations to submit a
  //*     standing query.
  //*
  //*
  //***************************************************************

interface StandingQueryMgr:LibraryManager, RequestManager
  {

    EventList get_event_descriptions()
raises (UCO::ProcessingFault, UCO::SystemFault);

    SubmitStandingQueryRequest submit_standing_query (
				 in Query aQuery,
                                                 in UCO::NameList result_attributes,
                                                 in SortAttributeList sort_attributes,
 in QueryLifeSpan lifespan,
 in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);


  };

//***************************************************************
  //*      interface GIAS:: ProductMgr
  //*     Derived from GIAS::LibraryManager and GIAS::AccessManager
  //*
  //*     Description: Provides operations to retrieve data about a
  //*     specific data set.
  //*
  //*
  //***************************************************************

  interface ProductMgr:LibraryManager, AccessManager
  {

    GetParametersRequest get_parameters (in UID::Product product, in UCO::NameList desired_parameters, in PropertyList properties)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

RelatedFileTypeList get_related_file_types( in UID::Product prod)
		  raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

	GetRelatedFilesRequest get_related_files ( in UID::ProductList
		products, in UCO::FileLocation location, in RelatedFileType
		type, in PropertyList properties )
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault,
	UCO::SystemFault );

  };

//***************************************************************
  //*      interface GIAS:: IngestMgr
  //*     Derived from GIAS::LibraryManager and
  //*  GIAS::RequestManager
  //*
  //*     Description: Provides operations to perform bulk transfers
  //*     of data between Libraries.
  //*
  //*
  //***************************************************************

interface IngestMgr:LibraryManager, RequestManager
  {

// FileLocation contains a directory
    IngestRequest bulk_pull (in UCO::FileLocation location, in PropertyList property_list)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

// FileLocation contains a directory
    IngestRequest bulk_push (in Query aQuery, in UCO::FileLocation location, in PropertyList property_list)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  };

//***************************************************************
  //*      interface GIAS:: Request
  //*
  //*     Description: An (abstract) object that provides operations
  //*     common to all forms of requests.
  //*
  //*
  //***************************************************************


  interface Request
  {

    UCO::RequestDescription get_request_description ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
    void set_user_info (in string message)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  UCO::Status get_status ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
    DelayEstimate get_remaining_delay ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
    void cancel ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
    CallbackID register_callback (in CB::Callback acallback)
raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
    void free_callback (in CallbackID id)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

    RequestManager get_request_manager ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: OrderRequest
  //*     Derived from GIAS::Request
  //*     Description: Returned by calls to order.
  //*
  //*
  //***************************************************************

interface OrderRequest:Request
  {
  UCO::State complete (out DeliveryManifest prods)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: SubmitQueryOrderRequest
  //*     Derived from GIAS::Request
  //*     Description: Returned by calls to submit_query_order.
  //*
  //*
  //***************************************************************

interface SubmitQueryOrderRequest:Request
  {

  void  pause()
	raises (UCO::ProcessingFault, UCO::SystemFault);

  void  resume()
	raises (UCO::ProcessingFault, UCO::SystemFault);

UCO::State complete_list (out DeliveryManifestList prods)
		raises (UCO::ProcessingFault, UCO::SystemFault);

  UCO::State complete (out DeliveryManifest prods)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //***************************************************************
  //*      interface GIAS:: CreateRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to create
  //*
  //*
  //***************************************************************

interface CreateRequest:Request
  {
  UCO::State complete (out UID::ProductList new_products)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: CreateMetaDataRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to create_metadata
  //*
  //*
  //***************************************************************

  interface CreateMetaDataRequest:Request
  {
  UCO::State complete (out UID::Product new_product)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };


//***************************************************************
  //*      interface GIAS:: UpdateRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to update
  //*
  //*
  //***************************************************************

interface UpdateRequest:Request
  {

  UCO::State complete ()
	raises (UCO::ProcessingFault, UCO::SystemFault);

  };


//***************************************************************
  //*      interface GIAS:: SubmitQueryRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to query
  //*
  //*
  //***************************************************************

interface SubmitQueryRequest:Request
  {
    void set_number_of_hits (in unsigned long hits)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);
  UCO::State complete_DAG_results (out QueryResults results)
	raises (UCO::ProcessingFault, UCO::SystemFault);
 UCO::State complete_stringDAG_results (out UCO::StringDAGList results)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  UCO::State complete_XML_results (out UCO::XMLDocument results)
	raises (UCO::ProcessingFault, UCO::SystemFault);

  };

//***************************************************************
  //*     interface GIAS:: SubmitStandingQueryRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to submit_standing_query
  //*
  //*
  //***************************************************************

  interface SubmitStandingQueryRequest:Request
  {
    void set_number_of_hits (in unsigned long hits)
      raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  unsigned long  get_number_of_hits()
	raises (UCO::ProcessingFault, UCO::SystemFault);

  unsigned long  get_number_of_hits_in_interval(in unsigned long  interval)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  unsigned long  get_number_of_intervals()
	raises (UCO::ProcessingFault, UCO::SystemFault);
  void  clear_all()
	raises (UCO::ProcessingFault, UCO::SystemFault);

  void  clear_intervals(in unsigned long num_intervals)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  void  clear_before(in UCO::Time relative_time)
	raises ( UCO::InvalidInputParameter, UCO::ProcessingFault, UCO::SystemFault);

  void  pause()
	raises (UCO::ProcessingFault, UCO::SystemFault);
  void  resume()
	raises (UCO::ProcessingFault, UCO::SystemFault);
  UCO::AbsTime get_time_last_executed()
 raises (UCO::ProcessingFault, UCO::SystemFault);
  UCO::AbsTime get_time_next_execution()
raises (UCO::ProcessingFault, UCO::SystemFault);
  UCO::State complete_DAG_results (out QueryResults results)
	raises (UCO::ProcessingFault, UCO::SystemFault);
UCO::State complete_stringDAG_results (out UCO::StringDAGList results)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  UCO::State complete_XML_results (out UCO::XMLDocument results)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: SetAvailabilityRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to makeAvailable
  //*
  //*     `
  //***************************************************************

  interface SetAvailabilityRequest:Request
  {
  UCO::State complete ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: HitCountRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to Hitcount
  //*
  //*
  //***************************************************************

interface HitCountRequest:Request
  {
  UCO::State complete (out unsigned long number_of_hits)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: GetParametersRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to get_parameters
  //*
  //*
  //***************************************************************

  interface GetParametersRequest:Request
  {
  UCO::State complete (out UCO::DAG parameters)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  UCO::State complete_StringDAG (out UCO::StringDAG parameters)
	raises (UCO::ProcessingFault, UCO::SystemFault);



  };

//***************************************************************
  //*      interface GIAS:: IngestRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to bulk_push and bulk_pull
  //*
  //*
  //***************************************************************

  interface IngestRequest:Request
  {
  UCO::State complete ()
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };


//***************************************************************
  //*      interface GIAS:: GetRelatedFilesRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to get_related_files
  //*
  //*
  //***************************************************************

interface GetRelatedFilesRequest:Request
  {
  UCO::State complete (out UCO::NameList locations)
	raises (UCO::ProcessingFault, UCO::SystemFault);
  };

//***************************************************************
  //*      interface GIAS:: CreateAssociationRequest
  //*     Derived from GIAS::Request
  //*
  //*     Description: Returned by calls to create_association
  //*
  //*
  //***************************************************************

interface CreateAssociationRequest:Request
  {
    UCO::State complete ()
	raises (UCO::ProcessingFault, UCO::SystemFault);

  };
//*******************************************************************
//*	interface GIAS::UpdateByQueryRequest
//*	Derived from GIAS::Request
//*	Description: Returned by calls to update_by_query
//*
//*******************************************************************
interface UpdateByQueryRequest:Request
  {
    UCO::State complete ()
	raises (UCO::ProcessingFault, UCO::SystemFault);

  };

};
#endif