org.mbari.siam.distributed
Class LongAttributeValueObject
java.lang.Object
org.mbari.siam.distributed.AttributeValueObject
org.mbari.siam.distributed.LongAttributeValueObject
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Exportable
public class LongAttributeValueObject
- extends AttributeValueObject
LongAttributeValueObject - The value for state attributes which have
Integer values.
- Author:
- Kent Headley
- See Also:
- Serialized Form
|
Field Summary |
protected static org.apache.log4j.Logger |
_logger
Log4j logger |
| Fields inherited from interface org.mbari.siam.distributed.Exportable |
EX_BASE, EX_BOOLEANOBJATT, EX_BYTEARRAYOBJATT, EX_DEVICEMESSAGEPACKET, EX_DEVICEPACKET, EX_DOUBLEOBJATT, EX_FLOATOBJATT, EX_INTEGEROBJATT, EX_LONGOBJATT, EX_MAX, EX_METADATAPACKET, EX_MNEMONICINTEGEROBJATT, EX_SCHEDULESPECIFIEROBJATT, EX_SENSORDATAPACKET, EX_STATE, EX_STATEATTRIBUTE |
|
Method Summary |
void |
export(java.io.DataOutput out)
Fulfills Exportable interface |
java.lang.Object |
parse(java.lang.String s)
Parse and validate the value of
this attribute from the specified string |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
Return String representation. |
boolean |
validate(java.lang.Long i)
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_logger
protected static org.apache.log4j.Logger _logger
- Log4j logger
LongAttributeValueObject
public LongAttributeValueObject()
LongAttributeValueObject
public LongAttributeValueObject(java.lang.String s,
long rangeMin,
long rangeMax)
throws java.lang.Exception
- Contructor
- Parameters:
s - constructor calls parse(s) to obtain _value memberrangeMin - minimum valuerangeMax - maximum value
- Throws:
java.lang.Exception
LongAttributeValueObject
public LongAttributeValueObject(java.lang.String s)
throws java.lang.Exception
- Throws:
java.lang.Exception
LongAttributeValueObject
public LongAttributeValueObject(long i,
long rangeMin,
long rangeMax)
throws java.lang.Exception
- Throws:
java.lang.Exception
LongAttributeValueObject
public LongAttributeValueObject(long i)
throws java.lang.Exception
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Return String representation.
- Specified by:
toString in class AttributeValueObject
parse
public java.lang.Object parse(java.lang.String s)
throws java.lang.Exception
- Parse and validate the value of
this attribute from the specified string
- Specified by:
parse in class AttributeValueObject
- Throws:
java.lang.Exception
validate
public boolean validate(java.lang.Long i)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable- Overrides:
writeExternal in class AttributeValueObject
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable- Overrides:
readExternal in class AttributeValueObject
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
export
public void export(java.io.DataOutput out)
throws java.io.IOException
- Fulfills Exportable interface
- Specified by:
export in interface Exportable- Overrides:
export in class AttributeValueObject
- Throws:
java.io.IOException
Copyright © 2003 MBARI.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.