cppCreAVertex
UseCase3
//****************************************************************************
//
// Date Created: November 20, 1995
//
//****************************************************************************
//
// Changes: Made Structure Shy
// Date Changed: November 29, 1995
//
//
// This propagation pattern will create a new Alternation Vertex. It takes in
// the Vertex Name, its Location and an Offset (distance from the vertex to
// where the vertex name is drawn). This propagation pattern first copies the
// defaultAltVertex, then calls: fill_in_vertex_label, fill_in_vertex_loca-
// tion and fill_in_vertex_label_offset. Lastly, this propagation pattern
// appends the new AltVertex to the Vertex_List.
//
//
//****************************************************************************
(@
#include <iostream.h>
#include <strstream.h>
@)
*operation* void cppCreAVertex(char* Labelname,
char* Location,
char* Offset)
*wrapper* Graph
(@ AltVertex* temp = (AltVertex*) defaultAltVertex->g_copy();
temp->fill_in_vertex_label(Labelname);
temp->fill_in_vertex_location(Location);
temp->fill_in_vertex_label_offset(Offset);
this->get_vertices()->append(temp); @)