Class System.TMWNetwork
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class System.TMWNetwork

java.lang.Object
   |
   +----System.TMWNetwork

public class TMWNetwork
extends Object
Perform Network utilitiy functions on Category Activities and Activity Networks. This includes Network and Sub-Network relationships, control flow between Actvities, coordination of presentation and view specific information.
See Also:
TMWFoundation, TMWTypes, TMWCategory, TMWSpecification, TMWInstance

Variable Index

 o ArcInfo
Stores Arc id's with access to its internal information.
 o ArcLiteral
 o Classification
 o Conditionals
 o ControlLinks
 o Description
 o HasNodes
 o Icon
 o InNetworks
 o NodeInfo
Stores Node id's with access to its internal information.
 o Owner
 o ParameterLinks
 o PostObject
 o PreObject
 o SpecificationParent
 o Specifications
 o SubNetworks
 o ViewInfo
These literals are provided for shorthand notation and compatibility.
 o XVar
 o YVar

Constructor Index

 o TMWNetwork()

Method Index

 o ConnectNodes(Integer, Integer, Vector, Integer)
 o CreateNode(String, String, Integer, Integer, Integer, String)
Create a network node which includes presentation information as well as Category and Activity Network control flow information.
 o DeleteEdge(Integer)
 o DeleteNode(Integer)
 o GetActivityGraphic(Integer)
Get the name of the graphic that is associated with the Node.
 o GetArcInfo(Integer)
 o GetArcList(Integer)
 o GetLabel(Integer)
 o GetNetwork(String)
 o GetNodeChild(Integer)
 o GetNodeInfo(Integer)
 o GetNodeList(Integer)
 o GetPoints(Integer)
 o GetPosition(Integer)
 o GetX(Integer)
 o GetY(Integer)
 o SetActivityGraphic(Integer, String)
Set the Activity graphic to the named graphic.
 o UpdateNodeChild(Integer, Integer)
 o UpdateNodeLabel(Integer, String)
 o UpdateNodePosition(Integer, Integer, Integer)
 o UpdatePointLocation(Integer, Integer, Integer, Integer)

Variables

 o ViewInfo
  public static String ViewInfo
These literals are provided for shorthand notation and compatibility.
 o Description
  public static String Description
 o Icon
  public static String Icon
 o XVar
  public static String XVar
 o YVar
  public static String YVar
 o Classification
  public static String Classification
 o SubNetworks
  public static String SubNetworks
 o InNetworks
  public static String InNetworks
 o ArcLiteral
  public static String ArcLiteral
 o Owner
  public static String Owner
 o PreObject
  public static String PreObject
 o PostObject
  public static String PostObject
 o HasNodes
  public static String HasNodes
 o Conditionals
  public static String Conditionals
 o ControlLinks
  public static String ControlLinks
 o ParameterLinks
  public static String ParameterLinks
 o Specifications
  public static String Specifications
 o SpecificationParent
  public static String SpecificationParent
 o NodeInfo
  public static Hashtable NodeInfo
Stores Node id's with access to its internal information.
 o ArcInfo
  public static Hashtable ArcInfo
Stores Arc id's with access to its internal information.

Constructors

 o TMWNetwork
  public TMWNetwork()

Methods

 o SetActivityGraphic
  public static void SetActivityGraphic(Integer Node,
                                        String Graphic)
Set the Activity graphic to the named graphic. The name is the label of a GIF file in the Teamware library directory.
Parameters:
Node - is the object id.
Graphic - is the name of the graphic to use.
 o GetActivityGraphic
  public static String GetActivityGraphic(Integer Node)
Get the name of the graphic that is associated with the Node.
Parameters:
Node - is the object id.
Returns:
s the name of the Activity graphic.
 o CreateNode
  public static Integer CreateNode(String Kind,
                                   String Name,
                                   Integer XVal,
                                   Integer YVal,
                                   Integer Parent,
                                   String ActivityType)
Create a network node which includes presentation information as well as Category and Activity Network control flow information. Information about a Node can be accessed through the static data structure NodeInfo (@see TMWNetwork.NodeInfo).
Parameters:
Kind - is the node kind, most likely 'network_node'.
Name - is the name of the node to create.
XVal - is the X position on the network drawing window.
YVal - is the Y position on the network drawing window.
Parent - is the id of the Category parent of the node.
ActivityType - is the name of the type of Activity.
Returns:
s a node id with the initialized values.
 o ConnectNodes
  public static Integer ConnectNodes(Integer FromNode,
                                     Integer ToNode,
                                     Vector PointList,
                                     Integer Parent)
 o GetNodeList
  public static Vector GetNodeList(Integer Parent)
 o GetArcList
  public static Vector GetArcList(Integer Node)
 o GetArcInfo
  public static TMWArc GetArcInfo(Integer From)
 o GetX
  public static Integer GetX(Integer Node)
 o GetY
  public static Integer GetY(Integer Node)
 o GetPosition
  public static TMWPoint GetPosition(Integer Node)
 o GetLabel
  public static String GetLabel(Integer Node)
 o GetNodeInfo
  public static TMWNode GetNodeInfo(Integer Node)
 o GetNodeChild
  public static Integer GetNodeChild(Integer Node)
 o UpdateNodeChild
  public static void UpdateNodeChild(Integer Node,
                                     Integer Child)
 o UpdateNodePosition
  public static void UpdateNodePosition(Integer Node,
                                        Integer X,
                                        Integer Y)
 o UpdateNodeLabel
  public static void UpdateNodeLabel(Integer Node,
                                     String NodeName)
 o DeleteNode
  public static void DeleteNode(Integer Node)
 o DeleteEdge
  public static void DeleteEdge(Integer Edge)
 o GetNetwork
  public static Integer GetNetwork(String Name)
 o GetPoints
  public static Vector GetPoints(Integer Edge)
 o UpdatePointLocation
  public static void UpdatePointLocation(Integer Edge,
                                         Integer NumPoint,
                                         Integer XVal,
                                         Integer YVal)

All Packages  Class Hierarchy  This Package  Previous  Next  Index