gr.forth.ics.rdfsuite.vrp.label
Class IntervalLabel

java.lang.Object
  extended by gr.forth.ics.rdfsuite.vrp.label.IntervalLabel
All Implemented Interfaces:
java.lang.Comparable

public class IntervalLabel
extends java.lang.Object
implements java.lang.Comparable


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
IntervalLabel()
           
IntervalLabel(int index, int post)
           
 
Method Summary
 int compareTo(java.lang.Object other)
           
 boolean equals(java.lang.Object that)
           
 int getIndex()
          Retrieves an index value of a resource
 int getLength()
           
 int getPost()
          Retrieves a post value for a resource
 int hashCode()
           
 boolean isContained(IntervalLabel label)
          This label is contained in the given label if its index is bigger or equal to the given index and its post is smaller or equal to the given post
 boolean isUnstored()
          This method tells whether the label is already stored in the database or not
 void setIndex(int index)
          Sets an index value of a resource
 void setPost(int post)
          Sets a post value for a resource
 void setUnstored(boolean isUnstored)
          This method sets whether the label is already stored in the db or not
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

IntervalLabel

public IntervalLabel()

IntervalLabel

public IntervalLabel(int index,
                     int post)
Method Detail

getIndex

public int getIndex()
Retrieves an index value of a resource

Returns:

setIndex

public void setIndex(int index)
Sets an index value of a resource

Parameters:
index -

getPost

public int getPost()
Retrieves a post value for a resource

Returns:

setPost

public void setPost(int post)
Sets a post value for a resource

Parameters:
post -

isContained

public boolean isContained(IntervalLabel label)
This label is contained in the given label if its index is bigger or equal to the given index and its post is smaller or equal to the given post

Parameters:
label -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object other)
Specified by:
compareTo in interface java.lang.Comparable

getLength

public int getLength()

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isUnstored

public boolean isUnstored()
This method tells whether the label is already stored in the database or not

Returns:

setUnstored

public void setUnstored(boolean isUnstored)
This method sets whether the label is already stored in the db or not

Parameters:
isUnstored -