Target Map Walker
Parameters
the environment
the node
the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.
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.
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.
the speed at which this MoveOnMap will move
the higher, the more the MoveOnMap slows down when obstacles are found
the range in which searching for possible obstacles. Obstacles slow down the MoveOnMap
Parameters
the environment
the node
the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.
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.
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.
the speed at which this MoveOnMap will move when obstacles are found
Parameters
the environment
the node
the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.
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.
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.
Parameters
the environment
the node
the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.
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.
the speed at which this MoveOnMap will move
Parameters
the environment
the node
the reaction. Will be used to compute the distance to walk in every step, relying on Reaction's getRate() method.
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.