alchemist-interfaces / it.unibo.alchemist.model.interfaces / Incarnation / getProperty

getProperty

abstract fun getProperty(node: Node<T>!, mol: Molecule!, prop: String!): Double

Given an Node, an Molecule and a property expressed as a String, returns a numeric value. If a numeric value is not deducible, Double.NaN is returned.

Parameters

node - Node<T>!: the node

mol - Molecule!: the molecule to analyze

prop - String!: the property to extract

Return
Double: a numeric value representing the property