CameraSee

class CameraSee @JvmOverloads constructor(node: Node<Any>, environment: Physics2DEnvironment<Any>, distance: Double, angle: Double, outputMolecule: Molecule, filterByMolecule: Molecule?) : AbstractAction<Any>

Checks nodes in the environment and writes in outputMolecule the list of it.unibo.alchemist.model.interfaces.VisibleNode, containing filterByMolecule. distance and angle define the field of view.

Constructors

Link copied to clipboard
fun CameraSee(node: Node<Any>, environment: Physics2DEnvironment<Any>, distance: Double, angle: Double, outputMolecule: Molecule = SimpleMolecule("vision"), filterByMolecule: Molecule? = null)

Functions

Link copied to clipboard
open override fun cloneAction(node: Node<Any>, reaction: Reaction<Any>): CameraSee
Link copied to clipboard
fun declareDependencyTo(p0: Dependency)
Link copied to clipboard
open override fun execute()
Link copied to clipboard
fun getConcentration(p0: Molecule): Optional<Any>
Link copied to clipboard
open override fun getContext(): Context
Link copied to clipboard
open fun getNode(): Node<Any>
Link copied to clipboard
override fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
fun nodeContains(p0: Molecule): Boolean
Link copied to clipboard
fun removeConcentration(p0: Molecule)
Link copied to clipboard
fun setConcentration(p0: Molecule, p1: Any)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val angle: Double

Angle in degrees of the field of view.

Link copied to clipboard
val distance: Double

Distance of the field of view.