Interface SyncedPositionables.Private.Forwarder
- All Superinterfaces:
EuclideanSpace, Positionable
- All Known Implementing Classes:
SyncedPositionables.Private.Forwarder1, SyncedPositionables.Private.Forwarder2, SyncedPositionables.Private.Forwarder3, SyncedPositionables.Private.Forwarder4, SyncedPositionables.Private.Forwarder5, SyncedPositionables.Private.GeneralForwarder
- Enclosing class:
SyncedPositionables.Private
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbck(int d) Move by -1 in one dimension.default voidmove(int[] distance) Move the element relative to its current location using an int[] as distance vector.default voidmove(int distance, int d) Move the element in one dimension for some distance.default voidmove(long[] distance) Move the element relative to its current location using a long[] as distance vector.default voidmove(Localizable localizable) Move the element relative to its current location using anLocalizableas distance vector.default intGets the space's number of dimensions.default voidsetPosition(int[] position) Set the position of the element.default voidsetPosition(int position, int d) Set the position of the element for one dimension.default voidsetPosition(long[] position) Set the position of the element.default voidsetPosition(long position, int d) Set the position of the element for one dimension.default voidsetPosition(Localizable localizable) Place the element at the same location as a givenLocalizableMethods inherited from interface Positionable
fwd, move
-
Method Details
-
bck
default void bck(int d) Description copied from interface:PositionableMove by -1 in one dimension.- Specified by:
bckin interfacePositionable- Parameters:
d- dimension
-
move
default void move(int distance, int d) Description copied from interface:PositionableMove the element in one dimension for some distance.- Specified by:
movein interfacePositionable- Parameters:
distance- relative offset in dimension dd- dimension
-
move
Description copied from interface:PositionableMove the element relative to its current location using anLocalizableas distance vector.- Specified by:
movein interfacePositionable- Parameters:
localizable- relative offset,EuclideanSpace.numDimensions()must be ≥EuclideanSpace.numDimensions()
-
move
default void move(int[] distance) Description copied from interface:PositionableMove the element relative to its current location using an int[] as distance vector.- Specified by:
movein interfacePositionable- Parameters:
distance- relative offset, length must be ≥EuclideanSpace.numDimensions()
-
move
default void move(long[] distance) Description copied from interface:PositionableMove the element relative to its current location using a long[] as distance vector.- Specified by:
movein interfacePositionable- Parameters:
distance- relative offset, length must be ≥EuclideanSpace.numDimensions()
-
setPosition
Description copied from interface:PositionablePlace the element at the same location as a givenLocalizable- Specified by:
setPositionin interfacePositionable- Parameters:
localizable- absolute position,EuclideanSpace.numDimensions()must be ≥EuclideanSpace.numDimensions()
-
setPosition
default void setPosition(int[] position) Description copied from interface:PositionableSet the position of the element.- Specified by:
setPositionin interfacePositionable- Parameters:
position- absolute position, length must be ≥EuclideanSpace.numDimensions()
-
setPosition
default void setPosition(long[] position) Description copied from interface:PositionableSet the position of the element.- Specified by:
setPositionin interfacePositionable- Parameters:
position- absolute position, length must be ≥EuclideanSpace.numDimensions()
-
setPosition
default void setPosition(int position, int d) Description copied from interface:PositionableSet the position of the element for one dimension.- Specified by:
setPositionin interfacePositionable- Parameters:
position- absolute position in dimension dd- dimension
-
setPosition
default void setPosition(long position, int d) Description copied from interface:PositionableSet the position of the element for one dimension.- Specified by:
setPositionin interfacePositionable- Parameters:
position- absolute position in dimension dd- dimension
-
numDimensions
default int numDimensions()Description copied from interface:EuclideanSpaceGets the space's number of dimensions.- Specified by:
numDimensionsin interfaceEuclideanSpace
-