Class PortConfig.Cfg

java.lang.Object
org.ka2ddo.yaac.io.PortConfig.Cfg
All Implemented Interfaces:
Serializable, Comparable<PortConfig.Cfg>
Enclosing class:
PortConfig

public static class PortConfig.Cfg extends Object implements Serializable, Comparable<PortConfig.Cfg>
Port-type-specific configuration parameters for a PortConnector.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Bit mask or enum number of protocols that can be transmitted through this port.
    int
    The baud rate used for the port, if needed, or port number for TCP and UDP socket connections.
    Names of beacon instances to send through this port (zero-length array means only default beacon).
    The amateur radio station callsign associated with this port, if needed.
    The device name or network host name/address associated with this port.
    Array of digipeat alias Strings for which this port will digipeat (if transmitAllowed is true).
    Any filter expression associated with this port, if needed.
    int
    A collection of flag bits indicating other attributes of the port configuration.
    boolean
    Indicates whether flow control is enabled on this port.
    The authentication passcode associated with this port, if needed.
    int
    Number of seconds in a timeslot cycle, which will be aligned to UTC and the Unix epoch time (if some weird prime number is used).
    int
    Number of seconds in a timeslot.
    int
    Number of seconds since the start of a cycle when this port is allowed to transmit.
    boolean
    Indicates whether messages can be transmitted from YAAC via this port.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Cfg()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compares this object with the specified object for order.
    dup()
    Make a deep copy of this Cfg object.
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for the object.
    Returns a string representation of the object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Cfg

      public Cfg()
  • Method Details

    • dup

      public PortConfig.Cfg dup()
      Make a deep copy of this Cfg object.
      Returns:
      duplicate Cfg
    • compareTo

      public int compareTo(PortConfig.Cfg o)
      Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
      Specified by:
      compareTo in interface Comparable<PortConfig.Cfg>
      Parameters:
      o - the object to be compared.
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
      Throws:
      ClassCastException - if the specified object's type prevents it from being compared to this object.
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
      See Also:
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.