java.lang.Object
org.bzdev.drama.common.CommDomainType
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 Summary
Modifier and TypeMethodDescriptionstatic CommDomainType
Find an instance of CommDomainType given its name.getName()
Get the name for this domain type.static Set<CommDomainType>
Get a set of the communication-domain types.
-
Method Details
-
getName
Get the name for this domain type.- Returns:
- the name
-
findType
Find an instance of CommDomainType given its name.- Parameters:
name
- the type's name- Returns:
- the CommDomainType corresponding to a name
-
typeSet
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
-