1-Wire Weather Service for Java -- Server API

wxservice.sensor.data
Enum Precipitation.Interval

java.lang.Object
  extended by java.lang.Enum<Precipitation.Interval>
      extended by wxservice.sensor.data.Precipitation.Interval
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Precipitation.Interval>
Enclosing class:
Precipitation

static enum Precipitation.Interval
extends java.lang.Enum<Precipitation.Interval>

Enumeration of rainfall accumulation udpate intervals.


Enum Constant Summary
annually
          Reset rain reference file annually.
daily
          Reset rain reference file daily.
manual
          Reset rain reference file manually.
monthly
          Reset rain reference file monthly.
weekly
          Reset rain reference file weekly.
 
Field Summary
(package private)  int interval
          Update interval in milliseconds.
(package private)  long lifetime
          Milliseconds for reference file to remain valid.
(package private)  int selector
          Calendar field selector.
(package private)  int trigger
          Trigger update time (days or hours).
 
Method Summary
(package private)  int schedule(int trigger)
          Schedules the next trigger for each enum type.
static Precipitation.Interval valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Precipitation.Interval[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

annually

public static final Precipitation.Interval annually
Reset rain reference file annually.


monthly

public static final Precipitation.Interval monthly
Reset rain reference file monthly.


weekly

public static final Precipitation.Interval weekly
Reset rain reference file weekly.


manual

public static final Precipitation.Interval manual
Reset rain reference file manually.


daily

public static final Precipitation.Interval daily
Reset rain reference file daily.

Field Detail

lifetime

final long lifetime
Milliseconds for reference file to remain valid.


selector

final int selector
Calendar field selector.


interval

int interval
Update interval in milliseconds.


trigger

int trigger
Trigger update time (days or hours).

Method Detail

values

public static Precipitation.Interval[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Precipitation.Interval c : Precipitation.Interval.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Precipitation.Interval valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

schedule

int schedule(int trigger)
Schedules the next trigger for each enum type.

Parameters:
trigger - (days or hours).
Returns:
trigger parameter pass through (default).

Copyright © 2005-2007 Karl Uppiano