Interface INode

All Known Subinterfaces:
IInstance, ITimex
All Known Implementing Classes:
Instance, Timex

public interface INode
Super interface for Instances and Timexs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInLink​(ILink link)
    Add a link to the set of IN links from this node.
    void
    addOutLink​(ILink link)
    Add a link to the set of OUT links from this node.
     
    boolean
    equals​(Object o)
     
    int
    Returns the integer part of the node ID.
    Returns the full string representation of the node ID.
    Returns a set of links that have this node as a target.
    Returns a set of links that have this node as a origin.
    Return the integer that corresponds with the type.
    void
    Removes a link that has this node as a target.
    void
    Removes a link that has this node as an origin.
    Returns the JSON (RFC 8259) representation of the Node.
  • Method Details

    • getId

      int getId()
      Returns the integer part of the node ID. Each event has to be identified by a unique ID number.
      Returns:
      Integer part of the node ID. May not be 0 or negative.
    • getType

      IType getType()
      Return the integer that corresponds with the type. Each event can be categorized under three different types.
      Returns:
      Enum that corresponds with the type of node.
    • getIdStr

      String getIdStr()
      Returns the full string representation of the node ID. Each event has to be identified by a unique ID number and String.
      Returns:
      Full string representation of the node ID. May not return null.
    • addOutLink

      void addOutLink​(ILink link)
      Add a link to the set of OUT links from this node.
      Parameters:
      link - a new OUT link from this node.
    • addInLink

      void addInLink​(ILink link)
      Add a link to the set of IN links from this node.
      Parameters:
      link - the link to the set of IN links from this node.
    • removeOutLink

      void removeOutLink​(ILink link)
      Removes a link that has this node as an origin.
      Parameters:
      link - a link that has this node as an origin.
    • removeInLink

      void removeInLink​(ILink link)
      Removes a link that has this node as a target.
      Parameters:
      link - a link that has this node as a target.
    • getOutLinks

      Set<ILink> getOutLinks()
      Returns a set of links that have this node as a origin.
      Returns:
      a set of links that have this node as a origin.
    • getInLinks

      Set<ILink> getInLinks()
      Returns a set of links that have this node as a target.
      Returns:
      a set of links that have this node as a target.
    • equals

      boolean equals​(Object o)
      Overrides:
      equals in class Object
    • toJSON

      String toJSON()
      Returns the JSON (RFC 8259) representation of the Node.
      Returns:
      the JSON (RFC 8259) representation of the Node.
    • clone

      INode clone()