|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fulmine.AbstractLifeCycle fulmine.model.component.AbstractComponent fulmine.model.field.AbstractField fulmine.model.field.LongField
public final class LongField
Field implementation for a long value.
Constructor Summary | |
---|---|
LongField(String id)
|
|
LongField(String id,
byte application,
short permission)
|
|
LongField(String identity,
long value)
Construct the field with the value from the native type |
|
LongField(String identity,
String value)
Construct the field with the value from a string representation of the native type |
Method Summary | |
---|---|
protected boolean |
doReadState(IOperationScope scope,
byte[] buffer,
int start,
int numberOfBytes)
Update the component state from the wire format state in the buffer. |
protected boolean |
doWriteState(IOperationScope scope,
IWireIdentity wireId,
byte[][] headerBuffer,
int[] headerBufferPosition,
byte[][] dataBuffer,
int[] dataBufferPosition,
boolean completeState)
Write the component state in its wire form to the buffer. |
boolean |
equals(Object obj)
|
long |
get()
Get the long value of the field |
protected AsyncLog |
getLog()
Get the log to use for the object hierarchy |
Object |
getValue()
Get the field value |
String |
getValueAsString()
Get the value of this field as a string. |
int |
hashCode()
|
boolean |
set(long value)
Set the long value for the field. |
boolean |
setValueFromString(String value)
Set the field value from the string. |
Methods inherited from class fulmine.model.field.AbstractField |
---|
addedToContainer, doComponentDestroy, getApplication, getContainer, getPermission, notifyEvent, removedFromContainer, setApplication, setContainer, setPermission, toDetailedString, toIdentityString, toString |
Methods inherited from class fulmine.model.component.AbstractComponent |
---|
addEvent, addListener, checkClone, clone, createIdentityString, doDestroy, doPostAddListener, doPostRemoveListener, doStart, getAddress, getAddressable, getDomain, getDrivingFrame, getEventSourceGroupId, getFrame, getIdentity, getIdentityString, getListeners, getSource, getTriggerEvent, getType, isClone, readState, removeListener, removeListeners, setDrivingFrame, setFrame, setTriggerEvent, writeState |
Methods inherited from class fulmine.AbstractLifeCycle |
---|
checkActive, destroy, finalize, isActive, start |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface fulmine.model.field.IField |
---|
clone |
Methods inherited from interface fulmine.protocol.wire.IWireState |
---|
readState, writeState |
Methods inherited from interface fulmine.event.IEventSource |
---|
addEvent, addListener, getEventSourceGroupId, getListeners, removeListener, removeListeners |
Methods inherited from interface fulmine.ILifeCycle |
---|
isActive, start |
Methods inherited from interface fulmine.IDestroyable |
---|
destroy |
Methods inherited from interface fulmine.IAddressable |
---|
getAddress, getDomain, getIdentity, getType |
Methods inherited from interface fulmine.event.IEvent |
---|
getDrivingFrame, getFrame, getSource, getTriggerEvent, setTriggerEvent |
Methods inherited from interface fulmine.IAddressable |
---|
getAddress, getDomain, getIdentity, getType |
Constructor Detail |
---|
public LongField(String id)
public LongField(String id, byte application, short permission)
public LongField(String identity, long value)
identity
- the field identityvalue
- the native value for the fieldpublic LongField(String identity, String value)
identity
- the field identityvalue
- the string representation of the value for the fieldMethod Detail |
---|
protected AsyncLog getLog()
AbstractLifeCycle
getLog
in class AbstractComponent
public long get()
public boolean set(long value)
value
- the new long value for this field
true
if the value of the field changed#notifyEvent(fulmine.model.event.IEvent)
protected final boolean doReadState(IOperationScope scope, byte[] buffer, int start, int numberOfBytes) throws Exception
AbstractComponent
AbstractComponent.readState(IOperationScope, byte[], int, int)
method.
doReadState
in class AbstractComponent
Exception
IWireState.readState(IOperationScope, byte[], int, int)
protected boolean doWriteState(IOperationScope scope, IWireIdentity wireId, byte[][] headerBuffer, int[] headerBufferPosition, byte[][] dataBuffer, int[] dataBufferPosition, boolean completeState) throws Exception
AbstractComponent
AbstractComponent.writeState(IOperationScope, IWireIdentity, byte[][], int[], byte[][], int[], boolean)
method.
doWriteState
in class AbstractComponent
Exception
IWireState.writeState(IOperationScope, IWireIdentity, byte[][],
int[], byte[][], int[], boolean)
,
for a discussion of the byte[][] usage
public int hashCode()
hashCode
in class AbstractField
public boolean equals(Object obj)
equals
in class AbstractField
public String getValueAsString()
IField
public Object getValue()
IField
public boolean setValueFromString(String value)
IField
false
or throws a
RuntimeException
.
setValueFromString
in interface IField
setValueFromString
in class AbstractField
value
- the value to set
true
if the value changed, false
if it
did not or there was a problem converting the string to the
field's data format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |