public class SecsFormat50 extends java.lang.Object implements SecsFormat5x, SecsFormat3x5x
| Modifier and Type | Field and Description |
|---|---|
SecsFormat[] |
dataArray
This is the array of data if we receive an array.
|
int |
length
The length of this data, defaults to eight.
|
long |
theData
The data value for this format.
|
cvsRev| Constructor and Description |
|---|
SecsFormat50()
Create a SecsFormat50 with an initial value of zero.
|
SecsFormat50(java.math.BigInteger newValue)
Create a SecsFormat50 from a BigInteger value.
|
SecsFormat50(byte newValue)
Create a SecsFormat50 from a byte value.
|
SecsFormat50(int newValue)
Create a SecsFormat50 from an int value.
|
SecsFormat50(long newValue)
Create a SecsFormat50 from a long value.
|
SecsFormat50(short newValue)
Create a SecsFormat50 from a short value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks for equality of the values.
|
SecsFormat[] |
getArray()
This allows for arrays of secsformats (not a list of secsformats).
|
java.math.BigInteger |
getBigIntegerValue()
Returns the value as a BigInteger.
|
boolean |
getBoolValue()
Returns true if the value is non-zero, otherwise false.
|
byte |
getByteValue()
Returns the value of the data as a byte.
|
double |
getDoubleValue()
Returns the value of the data as a double.
|
float |
getFloatValue()
Returns the value of the data as a float.
|
byte[] |
getFormattedBytes()
Returns the list in a manner suitable for encoding directly into a SECS
message byte stream used over SECSI or HSMS transport.
|
int |
getIntValue()
Returns the value of the data as a int.
|
int |
getLength()
Returns the number of elements in the SecsFormat00.
|
long |
getLongValue()
Returns the value of the data as a long.
|
int |
getNumberOfLengthBytes()
Returns the number of length bytes.
|
short |
getShortValue()
Returns the value of the data as a short.
|
java.lang.String |
getStringValue()
Returns a string representation of the value.
|
void |
setArray(SecsFormat[] array)
Set the data array if this is an array.
|
void |
setDataFromByteArray(byte[] temp,
int offset,
int length)
This method will convert the incoming value to a 4 byte signed integer.
|
void |
setLength(int newValue)
Sets the length of format to the new value.
|
void |
setNumberOfLengthBytes(int numberOfLengthBytes)
Sets the number of length bytes to send when the format is encoded.
|
java.lang.String |
toString()
Returns the SML string representing this value
|
java.lang.String |
toString(int indentCount)
Returns the indented SML string representing this value.
|
boolean |
zeroLength()
Ask if the list is a zero length list.
|
public SecsFormat[] dataArray
public int length
public long theData
public SecsFormat50()
public SecsFormat50(java.math.BigInteger newValue)
public SecsFormat50(byte newValue)
public SecsFormat50(int newValue)
public SecsFormat50(long newValue)
public SecsFormat50(short newValue)
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public SecsFormat[] getArray()
getArray in interface SecsFormatpublic java.math.BigInteger getBigIntegerValue()
public boolean getBoolValue()
getBoolValue in interface SecsFormatpublic byte getByteValue()
getByteValue in interface SecsFormatpublic double getDoubleValue()
getDoubleValue in interface SecsFormatpublic float getFloatValue()
getFloatValue in interface SecsFormatpublic byte[] getFormattedBytes()
getFormattedBytes in interface SecsFormatpublic int getIntValue()
getIntValue in interface SecsFormatpublic int getLength()
getLength in interface SecsFormatpublic long getLongValue()
getLongValue in interface SecsFormatpublic int getNumberOfLengthBytes()
getNumberOfLengthBytes in interface SecsFormatpublic short getShortValue()
getShortValue in interface SecsFormatpublic java.lang.String getStringValue()
getStringValue in interface SecsFormatpublic void setArray(SecsFormat[] array) throws SecsException
setArray in interface SecsFormatsetArray in interface SecsFormat3xsetArray in interface SecsFormat5xSecsExceptionpublic void setDataFromByteArray(byte[] temp,
int offset,
int length)
throws SecsException
setDataFromByteArray in interface SecsFormatSecsExceptionpublic void setLength(int newValue)
setLength in interface SecsFormatnewValue - the new lengthpublic void setNumberOfLengthBytes(int numberOfLengthBytes)
throws java.lang.IllegalArgumentException
setNumberOfLengthBytes in interface SecsFormatnumberOfLengthBytes - the new number of length bytes. This should
be 1, 2,3 or -1 to indicate the defaultjava.lang.IllegalArgumentException - if the value is not 1, 2, 3 or -1public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int indentCount)
toString in interface SecsFormatthe - indentationpublic boolean zeroLength()
zeroLength in interface SecsFormatCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.