gps.core
Class GPSNode

java.lang.Object
  extended by gps.core.GPSNode
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HierarchyNode

public abstract class GPSNode
extends java.lang.Object
implements java.io.Serializable

Generic representation of a node, which can be Hierarchy Node or Process Node

Author:
Faisel Azeez
See Also:
Serialized Form

Field Summary
static java.lang.String ACD_FLAG_ADD
           
static java.lang.String ACD_FLAG_CHANGE
           
static java.lang.String ACD_FLAG_DELETE
           
static java.lang.String ACD_FLAG_NOCHANGE
           
static int ALTERNATE_AND_PARENT
           
static int ALTERNATE_ONLY
           
static int CHILD_AND_ALTERNATE
           
static int CHILD_AND_ALTERNATE_AND_PARENT
           
static int CHILD_AND_PARENT
           
static int CHILD_ONLY
          variables which represent what kind of hierarchy a node can have values are given based on Model Architect
static int COMPLETE_DATA
          node data constant
static int CREATED_BY_ERP
           
static int CREATED_BY_USER
           
 int createdBy
           
static java.util.Enumeration EMPTY_ENUMERATION
          An enumeration that is always empty.
static int HIERARCHY_NODE
           
static int NEXT_ONLY
           
static int NONE
           
static int PARENT_ONLY
           
static int PARTIAL_DATA
          node data constant
static int PREVIOUS_AND_NEXT
           
static int PREVIOUS_ONLY
           
static int PROCESS_NODE
           
 
Constructor Summary
GPSNode(int nodeType)
          Does ...
GPSNode(int nodeType, java.lang.Object userObject)
          Does ...
GPSNode(int nodeType, java.lang.String name)
          Does ...
GPSNode(int nodeType, java.lang.String name, java.lang.Object userObject)
          Does ...
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getACDFlag()
           
 java.util.Enumeration getAlternates()
           
 java.util.Enumeration getChildrens()
           
abstract  int getCreatedBy()
           
 java.lang.String getCustomPanelFile()
          Does ...
 java.lang.Object getCustomPanelObject()
          Does ...
 int getDataFlag()
          gets data flag, whether node has complete data or partical data
 boolean getDrillDownFlag()
          gets Drilldown flag - whether node can have drilldown feature or not
 boolean getExplosionStopFlag()
          gets explosion stop flag for the node
 java.lang.String getImageName()
           
 java.lang.String getKey()
          Does ...
 GPSModel getModel()
          gets gps model
 java.lang.String getName()
          Does ...
 java.lang.Double getNodeID()
          gets node id
 int getNodeType()
          Does ...
 int getNodeTypeID()
          gets node type id
 java.lang.String getNotes()
          get the notes(description) of a node
 java.awt.Point getOrigin()
          Does ...
abstract  GPSNode getParent()
           
 java.util.Vector getParentNodesVector()
           
abstract  GPSNode getPrimaryNode()
           
 java.lang.String getRelationName()
           
 boolean getSecondaryParentFlag()
           
 java.lang.String getType()
          Does ...
 java.lang.Object getUserObject()
          Does ...
abstract  boolean isAlternate()
           
 void setACDFlag(java.lang.String flag)
           
abstract  void setCreatedBy(int createdBy)
           
 void setCustomPanelFile(java.lang.String customPanelFile)
          Does ...
 void setCustomPanelObject(java.lang.Object customPanelObject)
          Does ...
 void setDataFlag(int dataFlag)
          sets data flag, whether node has complete data or partical data
 void setExplosionStopFlag(boolean explosionStopFlag)
          sets explosion stop flag for the node
 void setImageFile(java.lang.String imageFile)
          Does ...
 void setImageName(java.lang.String imageName)
           
 void setKey(java.lang.String key)
          Does ...
 void setModel(GPSModel gpsModel)
          sets gps model
 void setName(java.lang.String name)
          Does ...
 void setNodeID(java.lang.Double nodeID)
          sets node id
 void setNodeType(int nodeType)
          Does ...
 void setNodeTypeID(int nodeTypeID)
          sets node type id
 void setNotes(java.lang.String notes)
          sets the notes(description)
 void setOrigin(int x, int y)
           
 void setOrigin(java.awt.Point origin)
          Does ...
abstract  void setPrimaryNode(GPSNode primaryNode)
           
 void setType(java.lang.String type)
          Does ...
 void setUserObject(java.lang.Object userObject)
          Does ...
 java.lang.String toString()
          toString method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHILD_ONLY

public static int CHILD_ONLY
variables which represent what kind of hierarchy a node can have values are given based on Model Architect


ALTERNATE_ONLY

public static int ALTERNATE_ONLY

PARENT_ONLY

public static int PARENT_ONLY

CHILD_AND_ALTERNATE

public static int CHILD_AND_ALTERNATE

CHILD_AND_PARENT

public static int CHILD_AND_PARENT

ALTERNATE_AND_PARENT

public static int ALTERNATE_AND_PARENT

CHILD_AND_ALTERNATE_AND_PARENT

public static int CHILD_AND_ALTERNATE_AND_PARENT

NONE

public static int NONE

PREVIOUS_ONLY

public static int PREVIOUS_ONLY

NEXT_ONLY

public static int NEXT_ONLY

PREVIOUS_AND_NEXT

public static int PREVIOUS_AND_NEXT

CREATED_BY_USER

public static int CREATED_BY_USER

CREATED_BY_ERP

public static int CREATED_BY_ERP

createdBy

public int createdBy

HIERARCHY_NODE

public static final int HIERARCHY_NODE
See Also:
Constant Field Values

PROCESS_NODE

public static final int PROCESS_NODE
See Also:
Constant Field Values

COMPLETE_DATA

public static final int COMPLETE_DATA
node data constant

See Also:
Constant Field Values

PARTIAL_DATA

public static final int PARTIAL_DATA
node data constant

See Also:
Constant Field Values

EMPTY_ENUMERATION

public static final java.util.Enumeration EMPTY_ENUMERATION
An enumeration that is always empty. This is used when an enumeration of a leaf node's children is requested.


ACD_FLAG_DELETE

public static java.lang.String ACD_FLAG_DELETE

ACD_FLAG_CHANGE

public static java.lang.String ACD_FLAG_CHANGE

ACD_FLAG_ADD

public static java.lang.String ACD_FLAG_ADD

ACD_FLAG_NOCHANGE

public static java.lang.String ACD_FLAG_NOCHANGE
Constructor Detail

GPSNode

public GPSNode(int nodeType)
Does ...

Parameters:
nodeType - ...

GPSNode

public GPSNode(int nodeType,
               java.lang.String name)
Does ...

Parameters:
nodeType - ...
name - ...

GPSNode

public GPSNode(int nodeType,
               java.lang.Object userObject)
Does ...

Parameters:
userObject - ...

GPSNode

public GPSNode(int nodeType,
               java.lang.String name,
               java.lang.Object userObject)
Does ...

Parameters:
nodeType - ...
name - ...
userObject - ...
Method Detail

setNotes

public void setNotes(java.lang.String notes)
sets the notes(description)

Parameters:
String - notes

getNotes

public java.lang.String getNotes()
get the notes(description) of a node

Parameters:
void -
Returns:
String

setNodeType

public void setNodeType(int nodeType)
Does ...

Parameters:
nodeType - ...

setName

public void setName(java.lang.String name)
Does ...

Parameters:
name - ...

setType

public void setType(java.lang.String type)
Does ...

Parameters:
type - ...

setImageFile

public void setImageFile(java.lang.String imageFile)
Does ...

Parameters:
imageFile - ...

setOrigin

public void setOrigin(java.awt.Point origin)
Does ...

Parameters:
origin - ...

setOrigin

public void setOrigin(int x,
                      int y)

setUserObject

public void setUserObject(java.lang.Object userObject)
Does ...

Parameters:
userObject - ...

setKey

public void setKey(java.lang.String key)
Does ...

Parameters:
key - ...

setCustomPanelFile

public void setCustomPanelFile(java.lang.String customPanelFile)
Does ...

Parameters:
key - ...

setCustomPanelObject

public void setCustomPanelObject(java.lang.Object customPanelObject)
Does ...

Parameters:
key - ...

getNodeType

public int getNodeType()
Does ...

Returns:
A String with ...

getName

public java.lang.String getName()
Does ...

Returns:
A String with ...

getType

public java.lang.String getType()
Does ...

Returns:
A String with ...

getOrigin

public java.awt.Point getOrigin()
Does ...

Returns:
A String with ...

getUserObject

public java.lang.Object getUserObject()
Does ...

Returns:
A Object with ...

getKey

public java.lang.String getKey()
Does ...

Returns:
A String with ...

getCustomPanelFile

public java.lang.String getCustomPanelFile()
Does ...

Returns:
A String with ...

getCustomPanelObject

public java.lang.Object getCustomPanelObject()
Does ...

Returns:
A String with ...

getChildrens

public java.util.Enumeration getChildrens()

getAlternates

public java.util.Enumeration getAlternates()

getParentNodesVector

public java.util.Vector getParentNodesVector()

getRelationName

public java.lang.String getRelationName()

getSecondaryParentFlag

public boolean getSecondaryParentFlag()

getParent

public abstract GPSNode getParent()

setCreatedBy

public abstract void setCreatedBy(int createdBy)

getCreatedBy

public abstract int getCreatedBy()

isAlternate

public abstract boolean isAlternate()

setPrimaryNode

public abstract void setPrimaryNode(GPSNode primaryNode)

getPrimaryNode

public abstract GPSNode getPrimaryNode()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

setDataFlag

public void setDataFlag(int dataFlag)
sets data flag, whether node has complete data or partical data

Parameters:
int - data flag

getDataFlag

public int getDataFlag()
gets data flag, whether node has complete data or partical data

Returns:
int data flag

setNodeTypeID

public void setNodeTypeID(int nodeTypeID)
sets node type id

Parameters:
int - nodeTypeID

getNodeTypeID

public int getNodeTypeID()
gets node type id

Returns:
int nodeTypeID

setNodeID

public void setNodeID(java.lang.Double nodeID)
sets node id

Parameters:
Double - nodeID

getNodeID

public java.lang.Double getNodeID()
gets node id

Returns:
Double nodeID

setModel

public void setModel(GPSModel gpsModel)
sets gps model

Parameters:
GPSModel - gpsModel

getModel

public GPSModel getModel()
gets gps model

Returns:
GPSModel gpsModel

getDrillDownFlag

public boolean getDrillDownFlag()
gets Drilldown flag - whether node can have drilldown feature or not

Returns:
boolean true/false

setExplosionStopFlag

public void setExplosionStopFlag(boolean explosionStopFlag)
sets explosion stop flag for the node

Parameters:
boolean - explosionStopFlag

getExplosionStopFlag

public boolean getExplosionStopFlag()
gets explosion stop flag for the node

Returns:
boolean explosionStopFlag

toString

public java.lang.String toString()
toString method

Overrides:
toString in class java.lang.Object
Returns:
String string representation of object

getImageName

public java.lang.String getImageName()
Returns:
Returns the imageName.

setImageName

public void setImageName(java.lang.String imageName)
Parameters:
imageName - The imageName to set.

getACDFlag

public java.lang.String getACDFlag()

setACDFlag

public void setACDFlag(java.lang.String flag)