FTGraph


Abstract

Instances of this protocol represent graphs

Methods

-close
Call this method if you do not need this instance any more
-createNodeWithId:
create a node of a certain node id
-graphId
-nodeIterator
-nodeWithId:
-objectToIdMapper
-removeNode:
removes the specified node from the graph
-serviceWithId:
Fetch a service for the specified id

close


Call this method if you do not need this instance any more

- (void) close;
Discussion

After this method release may also be called


createNodeWithId:


create a node of a certain node id

- (id <FTNode>) createNodeWithId: (id <FTId>) aNodeId 

graphId


- (id <FTId>) graphId;
method result
the identifier of this graph

nodeIterator


- (id <ECIterator>) nodeIterator;
method result
iterator over all nodes of the graph

nodeWithId:


- (id <FTNode>) nodeWithId: (id <FTId>) aNodeId;
method result
return the node corresponding to the given identifier

objectToIdMapper


- (id <FTObjectToIdMapper>) objectToIdMapper;
method result
mapper for this graph

removeNode:


removes the specified node from the graph

- removeNode: (id <FTNode>) nodeToRemove;
Parameter Descriptions
nodeToRemove
node to remove
method result
self
Discussion

A node can only be removed if it contains no incoming and no outgoing links


serviceWithId:


Fetch a service for the specified id

- (id <FTService>) serviceWithId: (NSString *) aServiceId;
Parameter Descriptions
aServiceId
id of the service
method result
the specified service or nil if not existent

(Last Updated August 27, 2006)