com.isti.quakewatch.util
Class DomainTypeInfoRec

java.lang.Object
  extended by com.isti.quakewatch.util.DomainTypeInfoRec

public class DomainTypeInfoRec
extends java.lang.Object

Class DomainTypeInfoRec manages an information record containing a message-number value associated with an event domain and type name.


Field Summary
 java.lang.String domainNameStr
          Event domain name string.
protected  long messageNumberValue
           
 java.lang.String typeNameStr
          Event type name string.
 
Constructor Summary
DomainTypeInfoRec(java.lang.String domainStr, java.lang.String typeStr)
          Creates an information record for the given event domain and type name.
DomainTypeInfoRec(java.lang.String domainStr, java.lang.String typeStr, long msgNum)
          Creates an information record for the given event domain and type name.
 
Method Summary
 long getMessageNumberValue()
          Returns the current message number value.
 void incMessageNumberValue()
          Increments the current message number value.
 void setMessageNumberValue(long msgNum)
          Sets the current message-number value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domainNameStr

public final java.lang.String domainNameStr
Event domain name string.


typeNameStr

public final java.lang.String typeNameStr
Event type name string.


messageNumberValue

protected long messageNumberValue
Constructor Detail

DomainTypeInfoRec

public DomainTypeInfoRec(java.lang.String domainStr,
                         java.lang.String typeStr,
                         long msgNum)
Creates an information record for the given event domain and type name.

Parameters:
domainStr - the domain name to use.
typeStr - the type name to use.
msgNum - the mesage-number value to use.

DomainTypeInfoRec

public DomainTypeInfoRec(java.lang.String domainStr,
                         java.lang.String typeStr)
Creates an information record for the given event domain and type name. The message-number value is set to zero.

Parameters:
domainStr - the domain name to use.
typeStr - the type name to use.
Method Detail

setMessageNumberValue

public void setMessageNumberValue(long msgNum)
Sets the current message-number value.

Parameters:
msgNum - the mesage-number value to use.

incMessageNumberValue

public void incMessageNumberValue()
Increments the current message number value.


getMessageNumberValue

public long getMessageNumberValue()
Returns the current message number value.

Returns:
The message number value.