de.cau.cs.kieler.kvid.data
Class KvidUri

java.lang.Object
  extended by de.cau.cs.kieler.kvid.data.KvidUri

public class KvidUri
extends Object

Object for holding addressing information about an element referred to for visualization purposes.

Rating red

Constructor Summary
KvidUri(String uriString)
          Constructor from a ptolemy URI or fragment URI.
 
Method Summary
 boolean equals(Object obj)
           
 String getElementUri()
          Getter for the element URI.
 String getPort()
          Getter for the port.
 int getPriority()
          Getter for the priority.
 int hashCode()
           
 boolean hasPort()
          Use this to find out whether this specifies a port.
 boolean hasPriority()
          Use this to find out whether this specifies a priority.
 void setPriority(int newPriority)
          Setter for the priority.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KvidUri

public KvidUri(String uriString)
Constructor from a ptolemy URI or fragment URI. Should look like the following: (fragment or ptolemy uri):(referred Port)<(priority)> The priority determines when the animation will take place if animation was selected.

Parameters:
uriString - The URI string which shall be used to create this object
Method Detail

getElementUri

public String getElementUri()
Getter for the element URI.

Returns:
The URI for the element this object points to

getPort

public String getPort()
Getter for the port.

Returns:
The port which is referred

getPriority

public int getPriority()
Getter for the priority.

Returns:
The priority of the referred data

setPriority

public void setPriority(int newPriority)
Setter for the priority.

Parameters:
newPriority - The new priority value

hasPort

public boolean hasPort()
Use this to find out whether this specifies a port.

Returns:
True if a port is specified, false else

hasPriority

public boolean hasPriority()
Use this to find out whether this specifies a priority.

Returns:
True if a priority is specified, false else

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object