source: cows/trunk/cows/model/service_identification.py @ 4008

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/model/service_identification.py@4008
Revision 4008, 1.3 KB checked in by spascoe, 11 years ago (diff)

New COWS distribution. See [4005] for description.

Line 
1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5"""
6Classes modelling the OWS Service Identification package v1.1.0.
7
8@author: Stephen Pascoe
9"""
10
11from cows.model.data_identification import Description
12
13class ServiceIdentification(Description):
14    """
15    @ivar serviceType
16    @type serviceType: ows.iso19115_subset.Code
17    @ivar serviceTypeVersions: The supported service versions
18    @type serviceTypeVersions: iterable of str
19    @ivar profiles
20    @type profiles: iterable of str
21    @ivar fees: defaults to 'none'
22    @type fees: str
23    @ivar accessConstraints: defaults to 'none'
24    @type accessConstraints: str
25
26    """
27    def __init__(self, serviceType, serviceTypeVersions=[],
28                 profiles=[], fees="none", accessConstraints="none", **kwargs):
29        """
30        All parameters set default attributes of the instance.
31
32        """
33        super(self.__class__, self).__init__(**kwargs)
34        self.serviceType = serviceType
35        self.serviceTypeVersions = serviceTypeVersions
36        self.profiles = profiles
37        self.fees = fees
38        self.accessConstraints = accessConstraints
39
Note: See TracBrowser for help on using the repository browser.