package com.github.bot.curiosone.core.knowledge.interfaces;

import com.github.bot.curiosone.core.knowledge.SemanticRelationType;

/**
 * Interface for SemanticRelation.
 * @author Christian
 *
 */
public interface Edge {

  /**
   *  Method that returns SemanticRelation source Vertex.
   * @return Object Vertex
   */
  Vertex getSource();

  /**
   *  Method that returns SemanticRelation target Vertex.
   * @return Object Vertex
   */
  Vertex getTarget();

  /**
   *  Method that returns SemanticRelation Type.
   * @return Enum SemanticRelationType
   */
  SemanticRelationType getType();
  
  /**
   * Method that returns SemanticRelation weight.
   * @return Integer weight
   */
  Integer getWeight();
  
  /**
   * Method that sets SemanticRelation weight.
   * @param i weight
   */
  void setWeight(Integer i);
}
package com.github.bot.curiosone.core.knowledge.interfaces;

import com.github.bot.curiosone.core.knowledge.SemanticRelationType;

/**
 * Represents an Edge of a Semantic Network.
 */
public interface Edge {

  /**
   * Returns the source of the Edge.
   */
  Vertex getSource();

  /**
   * Returns the Target of the Edge.
   */
  Vertex getTarget();

  /**
   * Returns the type of the Edge.
   */
  SemanticRelationType getType();

  /**
   * Returns the weight of the Edge.
   */
  Integer getWeight();

  /**
   * Sets the weight of the Edge.
   * @param i weight integer value to be set
   */
  void setWeight(Integer i);
}

improve Edge javadoc