def __init__(self, timestamp, status, value): typecheck.is_time(timestamp, AssertionError) typecheck.is_struct(status, raritan.rpc.lhxmodel.Parameter.Status, AssertionError) typecheck.is_double(value, AssertionError) self.timestamp = timestamp self.status = status self.value = value
def __init__(self, min, max, decdigits): typecheck.is_double(min, AssertionError) typecheck.is_double(max, AssertionError) typecheck.is_int(decdigits, AssertionError) self.min = min self.max = max self.decdigits = decdigits
def __init__(self, value, rawValue, metadata): typecheck.is_double(value, AssertionError) typecheck.is_int(rawValue, AssertionError) typecheck.is_struct(metadata, raritan.rpc.lhxmodel.Parameter.MetaData, AssertionError) self.value = value self.rawValue = rawValue self.metadata = metadata
def __init__(self, timestamp, state, value, isValid): typecheck.is_time(timestamp, AssertionError) typecheck.is_int(state, AssertionError) typecheck.is_double(value, AssertionError) typecheck.is_bool(isValid, AssertionError) self.timestamp = timestamp self.state = state self.value = value self.isValid = isValid
def __init__(self, timestamp, available, status, valid, value): typecheck.is_time(timestamp, AssertionError) typecheck.is_bool(available, AssertionError) typecheck.is_struct(status, raritan.rpc.sensors.NumericSensor.Reading.Status, AssertionError) typecheck.is_bool(valid, AssertionError) typecheck.is_double(value, AssertionError) self.timestamp = timestamp self.available = available self.status = status self.valid = valid self.value = value
def __init__(self, lowerCriticalIsEnabled, lowerCritical, lowerWarningIsEnabled, lowerWarning, upperWarningIsEnabled, upperWarning, upperCriticalIsEnabled, upperCritical, hysteresis): typecheck.is_bool(lowerCriticalIsEnabled, AssertionError) typecheck.is_double(lowerCritical, AssertionError) typecheck.is_bool(lowerWarningIsEnabled, AssertionError) typecheck.is_double(lowerWarning, AssertionError) typecheck.is_bool(upperWarningIsEnabled, AssertionError) typecheck.is_double(upperWarning, AssertionError) typecheck.is_bool(upperCriticalIsEnabled, AssertionError) typecheck.is_double(upperCritical, AssertionError) typecheck.is_double(hysteresis, AssertionError) self.lowerCriticalIsEnabled = lowerCriticalIsEnabled self.lowerCritical = lowerCritical self.lowerWarningIsEnabled = lowerWarningIsEnabled self.lowerWarning = lowerWarning self.upperWarningIsEnabled = upperWarningIsEnabled self.upperWarning = upperWarning self.upperCriticalIsEnabled = upperCriticalIsEnabled self.upperCritical = upperCritical self.hysteresis = hysteresis
def __init__(self, setpointWaterValve, setpointVentilators, defaultFanSpeed): typecheck.is_double(setpointWaterValve, AssertionError) typecheck.is_double(setpointVentilators, AssertionError) typecheck.is_double(defaultFanSpeed, AssertionError) self.setpointWaterValve = setpointWaterValve self.setpointVentilators = setpointVentilators self.defaultFanSpeed = defaultFanSpeed
def __init__(self, type, numDecDigits, numRangeMin, numRangeMax, numThresholdMin, numThresholdMax, label, id): typecheck.is_struct(type, raritan.rpc.sensors.Sensor.TypeSpec, AssertionError) typecheck.is_int(numDecDigits, AssertionError) typecheck.is_double(numRangeMin, AssertionError) typecheck.is_double(numRangeMax, AssertionError) typecheck.is_double(numThresholdMin, AssertionError) typecheck.is_double(numThresholdMax, AssertionError) typecheck.is_string(label, AssertionError) typecheck.is_string(id, AssertionError) self.type = type self.numDecDigits = numDecDigits self.numRangeMin = numRangeMin self.numRangeMax = numRangeMax self.numThresholdMin = numThresholdMin self.numThresholdMax = numThresholdMax self.label = label self.id = id
def __init__(self, available, takenValidSamples, state, minValue, avgValue, maxValue): typecheck.is_bool(available, AssertionError) typecheck.is_int(takenValidSamples, AssertionError) typecheck.is_int(state, AssertionError) typecheck.is_double(minValue, AssertionError) typecheck.is_double(avgValue, AssertionError) typecheck.is_double(maxValue, AssertionError) self.available = available self.takenValidSamples = takenValidSamples self.state = state self.minValue = minValue self.avgValue = avgValue self.maxValue = maxValue
def __init__(self, upperCriticalActive, upperCritical, upperWarningActive, upperWarning, lowerWarningActive, lowerWarning, lowerCriticalActive, lowerCritical, assertionTimeout, deassertionHysteresis): typecheck.is_bool(upperCriticalActive, AssertionError) typecheck.is_double(upperCritical, AssertionError) typecheck.is_bool(upperWarningActive, AssertionError) typecheck.is_double(upperWarning, AssertionError) typecheck.is_bool(lowerWarningActive, AssertionError) typecheck.is_double(lowerWarning, AssertionError) typecheck.is_bool(lowerCriticalActive, AssertionError) typecheck.is_double(lowerCritical, AssertionError) typecheck.is_int(assertionTimeout, AssertionError) typecheck.is_float(deassertionHysteresis, AssertionError) self.upperCriticalActive = upperCriticalActive self.upperCritical = upperCritical self.upperWarningActive = upperWarningActive self.upperWarning = upperWarning self.lowerWarningActive = lowerWarningActive self.lowerWarning = lowerWarning self.lowerCriticalActive = lowerCriticalActive self.lowerCritical = lowerCritical self.assertionTimeout = assertionTimeout self.deassertionHysteresis = deassertionHysteresis
def __init__(self, unit, id, defaultValue, min, max, read_only, decDigits): typecheck.is_enum(unit, raritan.rpc.lhxmodel.Parameter.Unit, AssertionError) typecheck.is_string(id, AssertionError) typecheck.is_double(defaultValue, AssertionError) typecheck.is_double(min, AssertionError) typecheck.is_double(max, AssertionError) typecheck.is_bool(read_only, AssertionError) typecheck.is_int(decDigits, AssertionError) self.unit = unit self.id = id self.defaultValue = defaultValue self.min = min self.max = max self.read_only = read_only self.decDigits = decDigits
def __init__(self, lower, upper): typecheck.is_double(lower, AssertionError) typecheck.is_double(upper, AssertionError) self.lower = lower self.upper = upper