MessageType.java

  1. /*
  2.  * Copyright © 2014 - 2021 Leipzig University (Database Research Group)
  3.  *
  4.  * Licensed under the Apache License, Version 2.0 (the "License");
  5.  * you may not use this file except in compliance with the License.
  6.  * You may obtain a copy of the License at
  7.  *
  8.  *     http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  * Unless required by applicable law or agreed to in writing, software
  11.  * distributed under the License is distributed on an "AS IS" BASIS,
  12.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  * See the License for the specific language governing permissions and
  14.  * limitations under the License.
  15.  */
  16. package org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.util;

  17. import org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.tuples
  18.   .Deletion;
  19. import org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.tuples
  20.   .Message;

  21. /**
  22.  * Message types used in {@link Deletion} and {@link Message}.
  23.  */
  24. public enum MessageType {
  25.   /**
  26.    * Message is sent from the vertex to itself.
  27.    */
  28.   FROM_SELF,
  29.   /**
  30.    * Message is sent from a child vertex.
  31.    */
  32.   FROM_CHILD,
  33.   /**
  34.    * Message is sent from a parent vertex.
  35.    */
  36.   FROM_PARENT,
  37.   /**
  38.    * Message is sent from a child vertex which will be removed at the end of
  39.    * the iteration.
  40.    */
  41.   FROM_CHILD_REMOVE,
  42.   /**
  43.    * Message is sent from a parent vertex which will be removed at the end of
  44.    * the iteration.
  45.    */
  46.   FROM_PARENT_REMOVE
  47. }