TargetMapWalker

constructor(@Nonnull environment: MapEnvironment<T, O, S>, @Nonnull node: Node<T>, @Nonnull reaction: Reaction<T>, @Nonnull trackMolecule: Molecule, @Nullable interactingMolecule: Molecule, speed: Double, interaction: Double, range: Double)
constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, trackMolecule: String, interactingMolecule: String, speed: Double, interaction: Double, range: Double)

Parameters

environment

the environment

node

the node

reaction

the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.

trackMolecule

the molecule to track. Its value will be read when it is time to compute a new target. If it is a GeoPosition, it will be used as-is. If it is an Iterable, the first two values (if they are present and they are numbers, or Strings parse-able to numbers) will be used to create a new GeoPosition. Otherwise, the Object bound to this Molecule will be converted to a String, and the String will be parsed using the float regular expression matcher in Javalib.

interactingMolecule

the molecule that decides wether or not a node is physically interacting with the node in which this action is executed, slowing this node down. The node will be considered "interacting" if such molecule is present, regardless its value.

speed

the speed at which this MoveOnMap will move

interaction

the higher, the more the MoveOnMap slows down when obstacles are found

range

the range in which searching for possible obstacles. Obstacles slow down the MoveOnMap


constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, trackMolecule: Molecule, interactingMolecule: Molecule, speed: Double)

Parameters

environment

the environment

node

the node

reaction

the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.

trackMolecule

the molecule to track. Its value will be read when it is time to compute a new target. If it is a GeoPosition, it will be used as-is. If it is an Iterable, the first two values (if they are present and they are numbers, or Strings parse-able to numbers) will be used to create a new GeoPosition. Otherwise, the Object bound to this Molecule will be converted to a String, and the String will be parsed using the float regular expression matcher in Javalib.

interactingMolecule

the molecule that decides wether or not a node is physically interacting with the node in which this action is executed, slowing this node down. The node will be considered "interacting" if such molecule is present, regardless its value.

speed

the speed at which this MoveOnMap will move when obstacles are found


constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, trackMolecule: Molecule, interactingMolecule: Molecule)

Parameters

environment

the environment

node

the node

reaction

the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.

trackMolecule

the molecule to track. Its value will be read when it is time to compute a new target. If it is a GeoPosition, it will be used as-is. If it is an Iterable, the first two values (if they are present and they are numbers, or Strings parse-able to numbers) will be used to create a new GeoPosition. Otherwise, the Object bound to this Molecule will be converted to a String, and the String will be parsed using the float regular expression matcher in Javalib.

interactingMolecule

the molecule that decides wether or not a node is physically interacting with the node in which this action is executed, slowing this node down. The node will be considered "interacting" if such molecule is present, regardless its value.


constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, trackMolecule: String, speed: Double)

Parameters

environment

the environment

node

the node

reaction

the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.

trackMolecule

the molecule to track. Its value will be read when it is time to compute a new target. If it is a GeoPosition, it will be used as-is. If it is an Iterable, the first two values (if they are present and they are numbers, or Strings parse-able to numbers) will be used to create a new GeoPosition. Otherwise, the Object bound to this Molecule will be converted to a String, and the String will be parsed using the float regular expression matcher in Javalib.

speed

the speed at which this MoveOnMap will move


constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, trackMolecule: String)

Parameters

environment

the environment

node

the node

reaction

the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.

trackMolecule

the molecule to track. Its value will be read when it is time to compute a new target. If it is a GeoPosition, it will be used as-is. If it is an Iterable, the first two values (if they are present and they are numbers, or Strings parse-able to numbers) will be used to create a new GeoPosition. Otherwise, the Object bound to this Molecule will be converted to a String, and the String will be parsed using the float regular expression matcher in Javalib.