Class TLfnReplicationAreaOfInterest
- All Implemented Interfaces:
ILcdInvalidateable
Class representing a replication area of interest, used to limit the replicated data to a geographic region.
Consult the class javadoc of TLfnReplication for more information.
- Since:
- 2015.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the geo reference in which theshape of the areais defined.getName()Returns the name of this areagetShape()Returns the shape of this area.voidThis method must be called each time a change has been made to thegetShape()or thegetGeoReference()of this area.voidSets the name of this areavoidsetShape(ILcdShape aShape, ILcdGeoReference aGeoReference) Sets the shape of this area.
-
Method Details
-
getShape
Returns the shape of this area.
Warning: if you make modifications to the returned
ILcdShapeinstance, you must callinvalidateObject(). Forgetting to do this will result in undefined behavior. The changes may or may not be picked up correctly.- Returns:
- The shape of this area.
-
getGeoReference
Returns the geo reference in which the
shape of the areais defined.Warning: if you make modifications to the returned
ILcdGeoReferenceinstance, you must callinvalidateObject(). Forgetting to do this will result in undefined behavior. The changes may or may not be picked up correctly.- Returns:
- the geo reference in which the shape of the area is defined.
-
getName
Returns the name of this area- Returns:
- the name of this area
-
setName
Sets the name of this area- Parameters:
aName- the new name for this area
-
setShape
Sets the shape of this area. The change of this area will affect all resources using this area for replication.
Warning: changes made to the
aShapeoraGeoReferenceinstances after this method has been called will only be picked up correctly if theinvalidateObject()method is called after making the changes. Forgetting to do this will result in undefined behavior. The changes may or may not be picked up correctly.The following snippet illustrates how to correctly update the shape:
AreaOfInterest area = ...; ILcdShape shape = ...; ILcdGeoReference ref = ...; area.setShape( shape, ref ); // Make some external changes, e.g. using a TLspEditController modifyShape( shape ); // Inform the AreaOfInterest instance about those changes area.invalidateObject();- Parameters:
aShape- The shapeaGeoReference- The geo reference in which the shape is defined. Currently, only WGS 84 is supported.
-
invalidateObject
public void invalidateObject()This method must be called each time a change has been made to the
getShape()or thegetGeoReference()of this area. Forgetting to do this will result in undefined behavior. The changes may or may not be picked up correctly.- Specified by:
invalidateObjectin interfaceILcdInvalidateable
-