Interface NetworkResource

All Superinterfaces:
Resource, Serializable
All Known Implementing Classes:
Message, Receipt

public interface NetworkResource extends Resource
A resource that is used to distribute the system resources over the network.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Flag to specify the Direct Distribution Mode
    static final int
    Flag to specify the Hierarchical Distribution Mode
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the destination of the network resource.
    int
    Gets the distribution mode of the network resource.
    Gets the nextHop of the network resource.
    boolean
    Checks if the network resource is a Message.
    boolean
    Checks if network resource is a Receipt.

    Methods inherited from interface com.inesm.KeyManager.model.Resource

    deserialize, getResourceID, serialize
  • Field Details

    • DIRECT_MODE

      static final int DIRECT_MODE
      Flag to specify the Direct Distribution Mode
      See Also:
    • HIERARCHICAL_MODE

      static final int HIERARCHICAL_MODE
      Flag to specify the Hierarchical Distribution Mode
      See Also:
  • Method Details

    • isMessage

      boolean isMessage()
      Checks if the network resource is a Message.
      Returns:
      true if it is, false otherwise
    • isReceipt

      boolean isReceipt()
      Checks if network resource is a Receipt.
      Returns:
      true if it is, false otherwise
    • getDestination

      String getDestination()
      Gets the destination of the network resource.
      Returns:
      the path of the destination station
    • getNextHop

      String getNextHop()
      Gets the nextHop of the network resource.
      Returns:
      the path of the next-hop station
    • getMode

      int getMode()
      Gets the distribution mode of the network resource.
      Returns:
      the distribution mode flag between DIRECT_MODE and HIERARCHICAL_MODE.