PNYMLEntityFactory Class Reference

#include <pnymlentityfactory.h>

Inheritance diagram for PNYMLEntityFactory:

Inheritance graph
[legend]
Collaboration diagram for PNYMLEntityFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual YMLConnection * createConnection (YMLPort *inPort, YMLPort *outPort)
virtual YMLNetwork * createNetwork (const char *name, const char *className)
virtual YMLNode * createNode (const char *name, const char *className)
virtual YMLLink * createLink (const char *object1, const char *port1, const char *object2, const char *port2)
virtual YMLPort * createPort (const char *name)

Member Function Documentation

YMLConnection * PNYMLEntityFactory::createConnection (  YMLPort *  inPort,
YMLPort *  outPort
)  [virtual]
 

This function is called to create a resolved YMLConnection. YMLConnections go directly from node to node with out intermeadiate ports. YMLConnections are created is a second pass after all nodes, netowrks, and links are been added.

Parameters:
inPort The incomming port.
outPort The outgoing port.
Returns:
A pointer to a newly constructed YMLConnection.

Implements YMLEntityFactory.

YMLNetwork * PNYMLEntityFactory::createNetwork (  const char *  name,
const char *  className
)  [virtual]
 

Create a new YMLNetwork entity.

Parameters:
name The name of the network.
className The network class. This can be used to decide which type of YMLNetwork to create.
Returns:
A pointer to the YMLNetwork.

Implements YMLEntityFactory.

YMLNode * PNYMLEntityFactory::createNode (  const char *  name,
const char *  className
)  [virtual]
 

Create a new YMLNode enity.

Parameters:
name The name of the node.
className The node class. This can be used to decide which type of YMLNode to create.
Returns:

Implements YMLEntityFactory.

YMLLink * PNYMLEntityFactory::createLink (  const char *  object1,
const char *  port1,
const char *  object2,
const char *  port2
)  [virtual]
 

Create a new YMLLink entity. It is not necessary to actually connect the objects in implementations of this function.

Parameters:
object1 The name of the first node or network.
port1 The name of the first port.
object2 The name of the second node or network.
port2 The name of the second port.
Returns:
A pointer to the newly created YMLNode.

Implements YMLEntityFactory.

YMLPort * PNYMLEntityFactory::createPort (  const char *  name  )  [virtual]
 

Create a new YMLPort entity.

Parameters:
name The port name.
Returns:
A pointer to the newly created YMLPort.

Implements YMLEntityFactory.


The documentation for this class was generated from the following files:
Generated on Wed Apr 5 21:05:04 2006 for Sesame by  doxygen 1.4.6