Class CommDomainType

java.lang.Object
org.bzdev.drama.common.CommDomainType

public class CommDomainType extends Object
Class representing a communication-domain type. Each communication domain has a communication-domain type that is set when the domain is constructed or initialized as a communication domain. The communication-domain type of a communication domain cannot be changed afterwards. When searching for domains that allow two message recipients (e.g., actors and groups) to communicate, one can provide a set of the communication domains that may be used and only communication domains of those types will be considered in the search.
  • Method Details

    • getName

      public String getName()
      Get the name for this domain type.
      Returns:
      the name
    • findType

      public static CommDomainType findType(String name)
      Find an instance of CommDomainType given its name.
      Parameters:
      name - the type's name
      Returns:
      the CommDomainType corresponding to a name
    • typeSet

      public static Set<CommDomainType> typeSet(String... names)
      Get a set of the communication-domain types.
      Parameters:
      names - the names of the communication-domain types that will be included in the set returned
      Returns:
      a set of communication domain types