Class CenUtils
- java.lang.Object
-
- eu.h2020.helios_social.core.info_control.CenUtils
-
public class CenUtils extends java.lang.ObjectStatic 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.ContextaddContext(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen, java.lang.String contextId)Associates context with contextual ego networkstatic eu.h2020.helios_social.core.contextualegonetwork.ContextgetCenContext(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 layerstatic 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 censtatic booleanhasContext(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork cen, java.lang.String contextId)Checks if a context is associated with cen
-
-
-
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 myContextsalter-- 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
-
-