com.kuka.nav.fleet.graph
Class ValidationEdge

java.lang.Object
  extended by com.kuka.nav.fleet.graph.ValidationEdge
All Implemented Interfaces:
Comparable<ValidationEdge>

public class ValidationEdge
extends Object
implements Comparable<ValidationEdge>

Helper class for storing validation messages for an edge.


Constructor Summary
ValidationEdge(Integer sourceId, Integer targetId)
          Constructor sets the unique source and target id.
 
Method Summary
 void addMessage(ValidationMessage message)
          Add a validation message
 int compareTo(ValidationEdge arg)
           
 boolean equals(Object obj)
           
 List<ValidationMessage> getMessageList()
          Returns the validation message list.
 Integer getSourceId()
          Returns edge's sourceId
 Integer getTargetId()
          Returns the edge's targetId.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationEdge

public ValidationEdge(Integer sourceId,
                      Integer targetId)
Constructor sets the unique source and target id.

Parameters:
sourceId - source node id
targetId - target node id
Method Detail

compareTo

public int compareTo(ValidationEdge arg)
Specified by:
compareTo in interface Comparable<ValidationEdge>
See Also:
Comparable.compareTo(java.lang.Object)

getSourceId

public Integer getSourceId()
Returns edge's sourceId

Returns:
source id

getTargetId

public Integer getTargetId()
Returns the edge's targetId.

Returns:
the targetId

addMessage

public void addMessage(ValidationMessage message)
Add a validation message

Parameters:
message - the message

getMessageList

public List<ValidationMessage> getMessageList()
Returns the validation message list.

Returns:
the list

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2019. All rights reserved.