Package de.extio.spacecraft.shared.bo
Interface FieldManager
-
public interface FieldManagerManages 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 doublechange(Fields fields, UUID type, CoordI2 entityPos, double value, int plateaus)Changes field at position entityPos.doublechange(AbstractCompositeEntity compositeEntity, UUID type, CoordI2 entityPos, double value, int plateaus)Changes field at position entityPos.doublechange(UUID compositeId, UUID type, CoordI2 entityPos, double value, int plateaus)Changes field at position entityPos.voidexcludeDynamicSerializationPropertiesPermanentStorage(Map<String,Object> dynamicSerializationProperties)Needed for the field manager to work.voidgetDynamicSerializationProperties(boolean incremental, UUID recipient, Fields fields, AbstractCompositeEntity parent, Map<String,Object> result)Needed for the field manager to work.FieldgetField(AbstractCompositeEntity compositeEntity, UUID fieldId)Get a specific field for a composite entity.FieldgetField(UUID compositeId, UUID fieldId)Get a specific field for a composite entity.FieldsgetFields(AbstractCompositeEntity compositeEntity)Get all fields for a composite entityFieldsgetFields(UUID compositeId)Get all fields for a composite entityvoidinit(AbstractCompositeEntity compositeEntity, boolean fill)Initializes a newly created field manager for a composite entityFieldMeasurementmeasure(Fields fields, UUID type, CoordI2 entityPos)Measure field at position entityPos.FieldMeasurementmeasure(AbstractCompositeEntity compositeEntity, UUID type, CoordI2 entityPos)Measure field at position entityPos.FieldMeasurementmeasure(UUID compositeId, UUID type, CoordI2 entityPos)Measure field at position entityPos.voidsetDynamicSerializationProperty(Map.Entry<String,Object> property, AbstractCompositeEntity compositeEntity)Needed for the field manager to work.voidupdateAfterMesh(AbstractCompositeEntity compositeEntity)Needed for the field manager to work.voidupdateBeforeMesh(AbstractCompositeEntity compositeEntity)Needed for the field manager to work.voidupdateFieldEmissions(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
-
-