Class CenUtils


  • public class CenUtils
    extends java.lang.Object
    Static utility methods for Contextual Ego Network.
    • Constructor Summary

      Constructors 
      Constructor Description
      CenUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static eu.h2020.helios_social.core.contextualegonetwork.Context addContext​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen, java.lang.String contextId)
      Associates context with contextual ego network
      static eu.h2020.helios_social.core.contextualegonetwork.Context getCenContext​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen, java.lang.String contextId)
      Gets contextual layer of cen on the basis of the related context of the layer
      static java.util.List<Context> getContexts​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen, MyContexts myContexts, java.lang.String alter)
      Gets contexts of an Alter of cen
      static boolean hasContext​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen, java.lang.String contextId)
      Checks if a context is associated with cen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CenUtils

        public CenUtils()
    • Method Detail

      • addContext

        public static eu.h2020.helios_social.core.contextualegonetwork.Context addContext​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen,
                                                                                          java.lang.String contextId)
        Associates context with contextual ego network
        Parameters:
        cen -
        contextId -
        Returns:
      • getContexts

        public static java.util.List<Context> getContexts​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen,
                                                          MyContexts myContexts,
                                                          java.lang.String alter)
        Gets contexts of an Alter of cen
        Parameters:
        cen - param myContexts
        alter -
        Returns:
      • hasContext

        public static boolean hasContext​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen,
                                         java.lang.String contextId)
        Checks if a context is associated with cen
        Parameters:
        cen -
        contextId -
        Returns:
      • getCenContext

        public static eu.h2020.helios_social.core.contextualegonetwork.Context getCenContext​(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen,
                                                                                             java.lang.String contextId)
        Gets contextual layer of cen on the basis of the related context of the layer