|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.AbstractLifeCycle
fulmine.model.component.AbstractComponent
fulmine.model.field.AbstractField
fulmine.model.field.DoubleField
public final class DoubleField
Field implementation for a double value.
| Constructor Summary | |
|---|---|
DoubleField(String identity)
|
|
DoubleField(String identity,
byte application,
short permission)
|
|
DoubleField(String identity,
double value)
Construct the field with the value from the native type |
|
DoubleField(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)
|
double |
get()
Get the double 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(double value)
Set the double 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 DoubleField(String identity)
public DoubleField(String identity,
byte application,
short permission)
public DoubleField(String identity,
double value)
identity - the field identityvalue - the native value for the field
public DoubleField(String identity,
String value)
identity - the field identityvalue - the string representation of the value for the field| Method Detail |
|---|
protected AsyncLog getLog()
AbstractLifeCycle
getLog in class AbstractComponentpublic double get()
public boolean set(double value)
value - the new double value for this field
true if the value of the field changed#notifyEvent(fulmine.model.event.IEvent)
protected boolean doReadState(IOperationScope scope,
byte[] buffer,
int start,
int numberOfBytes)
throws Exception
AbstractComponentAbstractComponent.readState(IOperationScope, byte[], int, int) method.
doReadState in class AbstractComponentExceptionIWireState.readState(IOperationScope, byte[], int, int)
protected boolean doWriteState(IOperationScope scope,
IWireIdentity wireId,
byte[][] headerBuffer,
int[] headerBufferPosition,
byte[][] dataBuffer,
int[] dataBufferPosition,
boolean completeState)
throws Exception
AbstractComponentAbstractComponent.writeState(IOperationScope, IWireIdentity, byte[][], int[], byte[][], int[], boolean)
method.
doWriteState in class AbstractComponentExceptionIWireState.writeState(IOperationScope, IWireIdentity, byte[][],
int[], byte[][], int[], boolean),
for a discussion of the byte[][] usagepublic int hashCode()
hashCode in class AbstractFieldpublic boolean equals(Object obj)
equals in class AbstractFieldpublic String getValueAsString()
IField
public Object getValue()
IField
public boolean setValueFromString(String value)
IFieldfalse or throws a
RuntimeException.
setValueFromString in interface IFieldsetValueFromString in class AbstractFieldvalue - 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 | |||||||||