Package it.unibo.alchemist.model.sapere
Interface ILsaNode
-
-
Method Summary
Modifier and Type Method Description abstract void
setConcentration(ILsaMolecule inst)
Adds an instance of ILsaMolecule in the node's LsaSpace. abstract boolean
removeConcentration(ILsaMolecule matchedInstance)
Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule. abstract List<ILsaMolecule>
getLsaSpace()
abstract List<ILsaMolecule>
getConcentration(Molecule mol)
-
Methods inherited from class it.unibo.alchemist.model.Node
addProperty, addReaction, asProperty, asPropertyOrNull, cloneNode, contains, equals, getContents, getId, getMoleculeCount, getProperties, getReactions, hashCode, removeConcentration, removeReaction, setConcentration
-
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from class java.lang.Comparable
compareTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setConcentration
abstract void setConcentration(ILsaMolecule inst)
Adds an instance of ILsaMolecule in the node's LsaSpace.
- Parameters:
inst
- the molecule you want to add
-
removeConcentration
abstract boolean removeConcentration(ILsaMolecule matchedInstance)
Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule.
- Parameters:
matchedInstance
- the molecule you want to remove- Returns:
true if the remove operation finish correctly, false otherwise.
-
getLsaSpace
abstract List<ILsaMolecule> getLsaSpace()
- Returns:
lsaMolecules in the node. This backs the internal LsaSpace: USE READ ONLY.
-
getConcentration
abstract List<ILsaMolecule> getConcentration(Molecule mol)
-
-
-
-