Interface Resource

All Superinterfaces:
Serializable
All Known Subinterfaces:
NetworkResource, SharedResource
All Known Implementing Classes:
Key, Message, Mission, Receipt, Request, Role, Settings, Station, User

public interface Resource extends Serializable
A station local resource that is used internally. This interface allows the resource to be compatible with no-lone zone operations, and operation logs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deserializes the resource from a data string generated by the serialize() method.
    Gets the station resource identifier.
    Serializes a resource into a string.
  • Method Details

    • deserialize

      void deserialize(String data) throws IOException, ClassNotFoundException
      Deserializes the resource from a data string generated by the serialize() method.
      Parameters:
      data - the serialized data as a string
      Throws:
      IOException - if an error occurred during the serialization process
      ClassNotFoundException - if its was not possible to load the class data, or the class data was not found
    • serialize

      String serialize() throws IOException
      Serializes a resource into a string.
      Returns:
      the string representing the serialization of the resource.
      Throws:
      IOException - if an error occurred during serialization
    • getResourceID

      String getResourceID()
      Gets the station resource identifier.
      Returns:
      a string containing the resource identifier.