PathwayLogic Assistant API

pla.data
Class Occurrence

java.lang.Object
  extended by pla.data.NamedThing
      extended by pla.data.NodeThing
          extended by pla.data.Occurrence
All Implemented Interfaces:
Comparable

public class Occurrence
extends NodeThing

Encapsulating an Occurrence.

Occurrences are ordered in a special way. As complexes are modeled using 3 characters '(', ':', and ')' we are ignoring these when sorting, so that for example, "(Ikb:(Nfkb1:Rela))-CLc" would appear between "Ifnggene-on-NUc" and "Ikb-degraded-CLc".

Author:
linda

Constructor Summary
Occurrence(Occurrence o)
          Construct an Occurrence as a clone of a given one.
Occurrence(String name, int ID)
          Construct an Occurrence.
Occurrence(String name, int ID, String longName)
          Construct an Occurrence with an associated long name.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 
Methods inherited from class pla.data.NodeThing
getID, getLongName, hashCode, isSelected, isShowLongName, setSelected, setShowLongName, 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

Occurrence

public Occurrence(String name,
                  int ID)
Construct an Occurrence. The given name must be non-null and non-empty (after trimming), otherwise constructor throws a RuntimeException. Uses the name also as the long name since it cannot be null.

Parameters:
name - String containing name
ID - numerical ID (used for identification)

Occurrence

public Occurrence(String name,
                  int ID,
                  String longName)
Construct an Occurrence with an associated long name. The given name must be non-null and non-empty (after trimming), otherwise constructor throws a RuntimeException.

Parameters:
name - String containing name
ID - numerical ID (used for identification)
longName - String containing a long name

Occurrence

public Occurrence(Occurrence o)
Construct an Occurrence as a clone of a given one.

Parameters:
o - Occurrence to be cloned
Method Detail

compareTo

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

equals

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

PathwayLogic Assistant API