예제 #1
0
    def __init__(self):
        Section.__init__(self)
        Coordinate.__init__(self)
        """Text of label is saved in name attribute defined in Coordinate base class."""

        ## ID label of an anchor node (optional)
        self.anchor_name = ''  # string

        ## type of object being metered by the label
        self.meter_type = MeterType.NONE

        ## ID of the object (Node or Link) being metered
        self.meter_name = ''

        ## label font
        self.font = ""

        ## label size
        self.size = 10.0

        ## True to use bold
        self.bold = False

        ## True to use italics
        self.italic = False
예제 #2
0
    def __init__(self):
        Coordinate.__init__(self)
        # self.name, inherited from Coordinate
        """Unique name or number identifying this node"""

        # self.x, self.y, inherited from Coordinate
        """Node location for mapping"""

        # self.description = ''
        """Optional description of the Node"""

        self.tag = ''
        """Optional label used to categorize or classify this Node"""
예제 #3
0
    def __init__(self):
        Coordinate.__init__(self)
        Section.__init__(self)
        # self.name, inherited from Coordinate
        """Unique name or number identifying this node"""

        # self.x, self.y, inherited from Coordinate
        """Node location for mapping"""

        #         self.description = ""
        #         """Optional description of the Node"""

        self.tag = ""
        """Optional label used to categorize or classify the Node"""

        self.initial_quality = 0.0
        """concentration for chemicals, hours for water age, or percent for source tracing"""
예제 #4
0
    def __init__(self):
        Section.__init__(self)
        Coordinate.__init__(self)
        """Text of label is saved in name attribute defined in Coordinate base class."""

        ## ID label of an anchor node (optional)
        self.anchor_name = ""  # string

        ## label font
        self.font = ""

        ## label size
        self.size = 10.0

        ## label bold
        self.bold = False

        ## lable italics
        self.italic = False
    def __init__(self):
        Section.__init__(self)
        Coordinate.__init__(self)

        self.description = None
        """Optional description of the gage"""

        self.tag = None
        """Optional label used to categorize the gage"""

        self.rain_format = RainFormat.VOLUME
        """Format in which the rain data are supplied:
            INTENSITY, VOLUME, CUMULATIVE (see also self.rain_units)"""

        self.rain_interval = 0.0
        """Recording time interval between gage readings in either decimal
            hours or hours:minutes format."""

        self.snow_catch_factor = 1
        """Factor that corrects gage readings for snowfall"""

        self.data_source = RainDataSource.TIMESERIES
        """Source of rainfall data; This can be set to a
            TimeSeries or a TimeSeriesFile."""

        self.timeseries = core.swmm.timeseries.TimeSeries()
        """time series with rainfall data if Data Source selection was TIMESERIES"""

        self.data_file_name = ""
        """Name of external file containing rainfall data"""

        self.data_file_station_id = ""
        """Recording gage station number"""

        self.data_file_rain_units = RainFileUnits.IN
        """Depth units (IN or MM) for rainfall values in the file"""
    def __init__(self):
        Section.__init__(self)
        Coordinate.__init__(self)

        ## Optional description of the gage
        self.description = ''

        ## Optional label used to categorize the gage
        self.tag = ''

        ## Format in which the rain data are supplied:
        ## INTENSITY, VOLUME, CUMULATIVE (see also self.rain_units)
        self.rain_format = RainFormat.VOLUME

        ## Recording time interval between gage readings in either decimal
        ## hours or hours:minutes format.
        self.rain_interval = "1:00"

        ## Factor that corrects gage readings for snowfall
        self.snow_catch_factor = 1.0

        ## Source of rainfall data; This can be set to a
        ## TimeSeries or a TimeSeriesFile.
        self.data_source = RainDataSource.TIMESERIES

        ## name of time series with rainfall data if Data Source selection was TIMESERIES
        self.timeseries = "None"

        ## Name of external file containing rainfall data
        self.data_file_name = "None"

        ## Recording gage station number
        self.data_file_station_id = "StationID"

        ## Depth units (IN or MM) for rainfall values in the file
        self.data_file_rain_units = RainFileUnits.IN
 def __init__(self, x, y, link):
     Coordinate.__init__(self, x, y)
     self.link = link