|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.naval.ComponentBase.HiddenComponentHelper
protected abstract static class ComponentBase.HiddenComponentHelper
Only visible towards subclasses.
This class is used for the serialization of a component. Sub-classes of this class have to expand on this to serialize the super class.
| Constructor Summary | |
|---|---|
protected |
ComponentBase.HiddenComponentHelper()
|
| Method Summary | |
|---|---|
Object |
deserialize(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer)
De-serialize the base component and request the sub-class to de-serialize itself too. |
protected abstract void |
deserializeSub(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer,
Object component)
De-serialize the subclass of this super class. |
protected abstract ComponentBase |
getObject()
Get an empty object to work with. |
protected abstract int |
getSize(net.sf.robocode.serialization.RbSerializer serializer,
Object object)
|
void |
serialize(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer,
Object object)
Serialize the base component and request the sub-class to serialize itself too. |
protected abstract void |
serializeSub(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer,
Object object)
|
int |
sizeOf(net.sf.robocode.serialization.RbSerializer serializer,
Object object)
Add the size of the base component and request the sub-class to add his additional size too. |
void |
update(ComponentBase component)
|
abstract void |
updateSub(ComponentBase component)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ComponentBase.HiddenComponentHelper()
| Method Detail |
|---|
public final void update(ComponentBase component)
update in interface net.sf.robocode.security.IHiddenComponentHelperpublic abstract void updateSub(ComponentBase component)
public final int sizeOf(net.sf.robocode.serialization.RbSerializer serializer,
Object object)
sizeOf in interface net.sf.robocode.serialization.ISerializableHelper
protected abstract int getSize(net.sf.robocode.serialization.RbSerializer serializer,
Object object)
public final void serialize(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer,
Object object)
serialize in interface net.sf.robocode.serialization.ISerializableHelper
protected abstract void serializeSub(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer,
Object object)
public final Object deserialize(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer)
deserialize in interface net.sf.robocode.serialization.ISerializableHelper
protected abstract void deserializeSub(net.sf.robocode.serialization.RbSerializer serializer,
ByteBuffer buffer,
Object component)
serializer - The serializer that does the transcoding.buffer - The buffer in which the data is stored.component - The component to whom to restore the values.protected abstract ComponentBase getObject()
RobotComponent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||