PathwayLogic Assistant API

pla.data
Class NodeThing

java.lang.Object
  extended by pla.data.NamedThing
      extended by pla.data.NodeThing
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
Occurrence, Rule

public abstract class NodeThing
extends NamedThing

Note: This class has a natural ordering that is inconsistent with equals.

Author:
linda

Constructor Summary
protected NodeThing(String name, int ID, String longName)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int getID()
           
 String getLongName()
          Obtain long name of node thing.
 int hashCode()
           
 boolean isSelected()
           
static boolean isShowLongName()
           
 void setSelected(boolean selected)
           
static void setShowLongName(boolean showLongName)
           
 String toString()
           
 
Methods inherited from class pla.data.NamedThing
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeThing

protected NodeThing(String name,
                    int ID,
                    String longName)
Method Detail

getID

public int getID()

getLongName

public String getLongName()
Obtain long name of node thing. Will never return NULL.

Returns:
String containing long name of node thing

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean selected)

isShowLongName

public static boolean isShowLongName()

setShowLongName

public static void setShowLongName(boolean showLongName)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class NamedThing

toString

public String toString()
Overrides:
toString in class NamedThing

equals

public boolean equals(Object o)
Overrides:
equals in class NamedThing

hashCode

public int hashCode()
Overrides:
hashCode in class NamedThing

PathwayLogic Assistant API