package EDU.neu.ccs.demeter.tools.apstudio.graphedit;
import java.awt.*;
import java.io.*;
import java.util.*;
import EDU.neu.ccs.demeter.*;
import EDU.neu.ccs.demeter.common.tg.*;


import EDU.neu.ccs.demeter.*;
abstract class UConstOrAltVertex extends UVertex {
  protected ParseOrNot parse;
  public ParseOrNot get_parse() { return parse; }
  public void set_parse(ParseOrNot new_parse)
    { parse = new_parse; }
  protected Vector outEdgeNameList;
  public Vector get_outEdgeNameList() { return outEdgeNameList; }
  public void set_outEdgeNameList(Vector new_outEdgeNameList)
    { outEdgeNameList = new_outEdgeNameList; }
  protected ScopeIdentifier_List keywords;
  public ScopeIdentifier_List get_keywords() { return keywords; }
  public void set_keywords(ScopeIdentifier_List new_keywords)
    { keywords = new_keywords; }
  UConstOrAltVertex() { super(); }
  public UConstOrAltVertex(UID vid, UVertexName vertexname, Coordinates position, IEdge_List incoming, OEdge_List outgoing, Vector inArcIdList, Vector outArcIdList, Decorator vdeco, TGVertex tgv, Perspective persp, ParseOrNot parse, Vector outEdgeNameList, ScopeIdentifier_List keywords) {
    super(vid, vertexname, position, incoming, outgoing, inArcIdList, outArcIdList, vdeco, tgv, persp);
    set_parse(parse);
    set_outEdgeNameList(outEdgeNameList);
    set_keywords(keywords);
  }

		UConstOrAltVertex(Ident name , UID _vid , boolean bParse)
		{
			super(name,_vid);
			if(bParse)
				parse = new YaParse();
			else
				parse = new NopParse();
		}
		
		public void addEdgeName(String name)
		{
			outEdgeNameList.addElement(name);
		}
		
		public void removeEdgeName(String name)
		{
			outEdgeNameList.removeElement(name);
		}
		
		public boolean checkThisOut(String name)
		{
			return outEdgeNameList.contains(name);
		}

	  void universal_trv0_bef(UniversalVisitor _v_) {
    super.universal_trv0_bef(_v_);
    _v_.before(this);
  }
  void universal_trv0_aft(UniversalVisitor _v_) {
    _v_.after(this);
    super.universal_trv0_aft(_v_);
  }
  void universal_trv0(UniversalVisitor _v_) {
    _v_.before_parse(this, parse);
    parse.universal_trv0(_v_);
    _v_.after_parse(this, parse);
    _v_.before_outEdgeNameList(this, outEdgeNameList);
    _v_.after_outEdgeNameList(this, outEdgeNameList);
    if (keywords != null) {
      _v_.before_keywords(this, keywords);
    keywords.universal_trv0(_v_);
      _v_.after_keywords(this, keywords);
    }
    super.universal_trv0(_v_);
  }
  void toVertEdge_UGraph_trv_bef(superInitVisitor v) {
    super.toVertEdge_UGraph_trv_bef(v);
  }
  void toVertEdge_UGraph_trv_aft(superInitVisitor v) {
    super.toVertEdge_UGraph_trv_aft(v);
  }
  void toVertEdge_UGraph_trv(superInitVisitor v) {
    super.toVertEdge_UGraph_trv(v);
  }
  void saveGraph_UGraph_trv_bef(SaveGraphVisitor sgv) {
    super.saveGraph_UGraph_trv_bef(sgv);
  }
  void saveGraph_UGraph_trv_aft(SaveGraphVisitor sgv) {
    super.saveGraph_UGraph_trv_aft(sgv);
  }
  void saveGraph_UGraph_trv(SaveGraphVisitor sgv) {
    parse.saveGraph_UGraph_trv(sgv);
    if (keywords != null) {
    keywords.saveGraph_UGraph_trv(sgv);
    }
    super.saveGraph_UGraph_trv(sgv);
  }
  void saveMarkedGraph_UGraph_trv_bef(SelectMarkedVisitor v) {
    super.saveMarkedGraph_UGraph_trv_bef(v);
  }
  void saveMarkedGraph_UGraph_trv_aft(SelectMarkedVisitor v) {
    super.saveMarkedGraph_UGraph_trv_aft(v);
  }
  void saveMarkedGraph_UGraph_trv(SelectMarkedVisitor v) {
    parse.saveMarkedGraph_UGraph_trv(v);
    if (keywords != null) {
    keywords.saveMarkedGraph_UGraph_trv(v);
    }
    super.saveMarkedGraph_UGraph_trv(v);
  }
  void ReadAllVertices_UGraph_trv_bef(ReadVertexVisitor rvv) {
    super.ReadAllVertices_UGraph_trv_bef(rvv);
  }
  void ReadAllVertices_UGraph_trv_aft(ReadVertexVisitor rvv) {
    super.ReadAllVertices_UGraph_trv_aft(rvv);
  }
  void ReadAllVertices_UGraph_trv(ReadVertexVisitor rvv) {  }
  void toUEdgeVertex_UGraph_trv_bef(TGCreateVisitor tg) {
    super.toUEdgeVertex_UGraph_trv_bef(tg);
  }
  void toUEdgeVertex_UGraph_trv_aft(TGCreateVisitor tg) {
    super.toUEdgeVertex_UGraph_trv_aft(tg);
  }
  void toUEdgeVertex_UGraph_trv(TGCreateVisitor tg) {
    super.toUEdgeVertex_UGraph_trv(tg);
  }
  void __trav_getCdString_UGraph_trv_bef(__V_UGraph_getCdString __v0) {
    super.__trav_getCdString_UGraph_trv_bef(__v0);
  }
  void __trav_getCdString_UGraph_trv_aft(__V_UGraph_getCdString __v0) {
    super.__trav_getCdString_UGraph_trv_aft(__v0);
  }
  void __trav_getCdString_UGraph_trv(__V_UGraph_getCdString __v0) {  }
  void toallCdString_UVertex_trv_bef(cdStringVisitor __v0) {
    super.toallCdString_UVertex_trv_bef(__v0);
  }
  void toallCdString_UVertex_trv_aft(cdStringVisitor __v0) {
    super.toallCdString_UVertex_trv_aft(__v0);
  }
  void toallCdString_UVertex_trv(cdStringVisitor __v0) {
    parse.toallCdString_UVertex_trv(__v0);
    if (keywords != null) {
    keywords.toallCdString_UVertex_trv(__v0);
    }
    super.toallCdString_UVertex_trv(__v0);
  }
  void __trav_isMarked_UVertex_trv_bef(__V_UVertex_isMarked __v0) {
    super.__trav_isMarked_UVertex_trv_bef(__v0);
  }
  void __trav_isMarked_UVertex_trv_aft(__V_UVertex_isMarked __v0) {
    super.__trav_isMarked_UVertex_trv_aft(__v0);
  }
  void __trav_isMarked_UVertex_trv(__V_UVertex_isMarked __v0) {
    super.__trav_isMarked_UVertex_trv(__v0);
  }
  void toUVertex_PlacementVisitor_trv_bef(PlaceVertexVisitor pvv) {
    super.toUVertex_PlacementVisitor_trv_bef(pvv);
  }
  void toUVertex_PlacementVisitor_trv_aft(PlaceVertexVisitor pvv) {
    super.toUVertex_PlacementVisitor_trv_aft(pvv);
  }
  void toUVertex_PlacementVisitor_trv(PlaceVertexVisitor pvv) {
    super.toUVertex_PlacementVisitor_trv(pvv);
  }
  void toAllEnds_PlacementVisitor_trv_bef(superInitVisitor siv) {
    super.toAllEnds_PlacementVisitor_trv_bef(siv);
  }
  void toAllEnds_PlacementVisitor_trv_aft(superInitVisitor siv) {
    super.toAllEnds_PlacementVisitor_trv_aft(siv);
  }
  void toAllEnds_PlacementVisitor_trv(superInitVisitor siv) {
    super.toAllEnds_PlacementVisitor_trv(siv);
  }
}

