Class PredicateType

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

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

    Constructors 
    Constructor Description
    PredicateType​(int tag)
    Constructor used to select events with the given tag value.
  • Method Summary

    Modifier and Type Method Description
    boolean test​(SimEvent evt)
    Matches any event that has one of the specified tag.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • 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 java.util.function.Predicate<SimEvent>
      Parameters:
      evt -
      Returns:
      See Also:
      tag