alchemist-interfaces / it.unibo.alchemist.model.interfaces / Context / getWider

getWider

static fun getWider(c1: Context!, c2: Context!): Context!

Parameters

c1 - Context!: context to compare

c2 - Context!: other context to compare

Return
Context!: the wider (more general) between the two: if either one is #GLOBAL, then #GLOBAL is returned. Otherwise, if either one is #NEIGHBORHOOD, #NEIGHBORHOOD is returned. Otherwise, #LOCAL is returned.