Class GenericMoleculePresent

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Condition , java.io.Serializable

    
    public class GenericMoleculePresent<T extends Number>
    extends AbstractCondition<T>
                        

    This class implements a condition which checks if a molecule is present or not.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericMoleculePresent(Node<T> n, Molecule mol, T quantity) Builds a new condition, which checks if the molecule exists or not inside the node n.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • GenericMoleculePresent

        GenericMoleculePresent(Node<T> n, Molecule mol, T quantity)
        Builds a new condition, which checks if the molecule exists or not inside the node n.
        Parameters:
        n - the current node
        mol - the molecule whose presence should be checked
        quantity - the amount of molecules which should be present.