Package de.extio.spacecraft.shared.bo
Interface FieldManager
-
public interface FieldManager
Manages all fields (Shield, O2, ...) of a composite entity You can access the corresponding bean implementation via EngineFacade::getBusinessObject / ServerFacade::getBusinessObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
change(Fields fields, UUID type, CoordI2 entityPos, double value, int plateaus)
Changes field at position entityPos.double
change(AbstractCompositeEntity compositeEntity, UUID type, CoordI2 entityPos, double value, int plateaus)
Changes field at position entityPos.double
change(UUID compositeId, UUID type, CoordI2 entityPos, double value, int plateaus)
Changes field at position entityPos.void
excludeDynamicSerializationPropertiesPermanentStorage(Map<String,Object> dynamicSerializationProperties)
Needed for the field manager to work.void
getDynamicSerializationProperties(boolean incremental, UUID recipient, Fields fields, AbstractCompositeEntity parent, Map<String,Object> result)
Needed for the field manager to work.Field
getField(AbstractCompositeEntity compositeEntity, UUID fieldId)
Get a specific field for a composite entity.Field
getField(UUID compositeId, UUID fieldId)
Get a specific field for a composite entity.Fields
getFields(AbstractCompositeEntity compositeEntity)
Get all fields for a composite entityFields
getFields(UUID compositeId)
Get all fields for a composite entityvoid
init(AbstractCompositeEntity compositeEntity, boolean fill)
Initializes a newly created field manager for a composite entityFieldMeasurement
measure(Fields fields, UUID type, CoordI2 entityPos)
Measure field at position entityPos.FieldMeasurement
measure(AbstractCompositeEntity compositeEntity, UUID type, CoordI2 entityPos)
Measure field at position entityPos.FieldMeasurement
measure(UUID compositeId, UUID type, CoordI2 entityPos)
Measure field at position entityPos.void
setDynamicSerializationProperty(Map.Entry<String,Object> property, AbstractCompositeEntity compositeEntity)
Needed for the field manager to work.void
updateAfterMesh(AbstractCompositeEntity compositeEntity)
Needed for the field manager to work.void
updateBeforeMesh(AbstractCompositeEntity compositeEntity)
Needed for the field manager to work.void
updateFieldEmissions(AbstractCompositeEntity compositeEntity)
Needed for the field manager to work.
-
-
-
Method Detail
-
getFields
Fields getFields(AbstractCompositeEntity compositeEntity)
Get all fields for a composite entity
-
getField
Field getField(UUID compositeId, UUID fieldId)
Get a specific field for a composite entity. See also FieldBuiltinTypes
-
getField
Field getField(AbstractCompositeEntity compositeEntity, UUID fieldId)
Get a specific field for a composite entity. See also FieldBuiltinTypes
-
getDynamicSerializationProperties
void getDynamicSerializationProperties(boolean incremental, UUID recipient, Fields fields, AbstractCompositeEntity parent, Map<String,Object> result)
Needed for the field manager to work. Already called by AbstractCompositeEntity
-
setDynamicSerializationProperty
void setDynamicSerializationProperty(Map.Entry<String,Object> property, AbstractCompositeEntity compositeEntity)
Needed for the field manager to work. Already called by AbstractCompositeEntity
-
excludeDynamicSerializationPropertiesPermanentStorage
void excludeDynamicSerializationPropertiesPermanentStorage(Map<String,Object> dynamicSerializationProperties)
Needed for the field manager to work. Already called by AbstractCompositeEntity
-
init
void init(AbstractCompositeEntity compositeEntity, boolean fill)
Initializes a newly created field manager for a composite entity
-
updateBeforeMesh
void updateBeforeMesh(AbstractCompositeEntity compositeEntity)
Needed for the field manager to work. Already called by AbstractCompositeEntity
-
updateAfterMesh
void updateAfterMesh(AbstractCompositeEntity compositeEntity)
Needed for the field manager to work. Already called by AbstractCompositeEntity
-
updateFieldEmissions
void updateFieldEmissions(AbstractCompositeEntity compositeEntity)
Needed for the field manager to work. Already called by AbstractCompositeEntity
-
measure
FieldMeasurement measure(UUID compositeId, UUID type, CoordI2 entityPos)
Measure field at position entityPos. See also FieldBuiltinTypes
-
measure
FieldMeasurement measure(AbstractCompositeEntity compositeEntity, UUID type, CoordI2 entityPos)
Measure field at position entityPos. See also FieldBuiltinTypes
-
measure
FieldMeasurement measure(Fields fields, UUID type, CoordI2 entityPos)
Measure field at position entityPos. See also FieldBuiltinTypes
-
change
double change(UUID compositeId, UUID type, CoordI2 entityPos, double value, int plateaus)
Changes field at position entityPos. Value can be positive or negative. See also FieldBuiltinTypes- Returns:
- Delta changed
-
change
double change(AbstractCompositeEntity compositeEntity, UUID type, CoordI2 entityPos, double value, int plateaus)
Changes field at position entityPos. Value can be positive or negative. See also FieldBuiltinTypes- Returns:
- Delta changed
-
-