Class PredicateType

java.lang.Object
org.cloudbus.cloudsim.core.events.PredicateType
All Implemented Interfaces:
Predicate<SimEvent>

public class PredicateType
extends Object
implements Predicate<SimEvent>
A predicate to select events with specific tag.
Since:
CloudSim Toolkit 1.0
Author:
Marcos Dias de Assuncao
See Also:
Predicate
  • Constructor Details

    • PredicateType

      public PredicateType​(int tag)
      Constructor used to select events with the given tag value.
      Parameters:
      tag - an event tag value
  • Method Details

    • test

      public boolean test​(SimEvent evt)
      Matches any event that has one of the specified tag.
      Specified by:
      test in interface Predicate<SimEvent>
      Parameters:
      evt -
      Returns:
      See Also:
      tag