Class CommDomainInfo<T>

java.lang.Object
org.bzdev.drama.common.CommDomainInfo<T>

public class CommDomainInfo<T> extends Object
Communication domain data used in determining connectivity. This class is used as the return value of the GenericSimulation methods named findCommDomain, which provides three domains: a domain for a message source, a domain for a message recipient, and the closest ancestor of both. These domains are the values of the methods getSourceDomain, getDestDomain, and getAncestorDomain respectively.
  • Constructor Details

    • CommDomainInfo

      public CommDomainInfo(T sd, T pd, T dd)
      Constructor. All domains must be equal in the case in which only one domain participates.
      Parameters:
      sd - the domain used by the message source
      pd - the ancestor domain
      dd - the destination or next-hop domain
  • Method Details

    • getSourceDomain

      public T getSourceDomain()
      Get the source domain.
      Returns:
      the source domain
    • getAncestorDomain

      public T getAncestorDomain()
      Get the ancestor domain.
      Returns:
      the ancestor domain
    • getDestDomain

      public T getDestDomain()
      Get the destination or next hop domain.
      Returns:
      the destination or next-hop domain