package temp;

import java.util.Vector;

public class Assist {
	Vector<String> scope;
	Vector<String> sum;
	Vector<String> name;
	int sc;
	int sm;
	Vector<ActClass> actlist;
	Vector <InPort> input;
	Vector <OutPort> output;
	Vector <String> sub_syst;
	Vector<ActClass> periodic_act;
	
	public Assist()
	{
		this.sc=0;
		this.sm=0;
		this.scope = new Vector<String>();
		this.sum = new Vector<String>();
		this.name= new Vector<String>();
		this.actlist=new Vector<ActClass>();
		this.input=new Vector<InPort>();
		this.output=new Vector<OutPort>();
		this.sub_syst=new Vector<String>();
		this.periodic_act=new Vector<ActClass>();
	}
	
	public boolean match_scope(String s)
	{
		int i=0;
		boolean ret=false;
		while(true)
		{
			if(this.scope.get(i).matches(s))
			{
				ret=true;
			}
			if(this.scope.lastElement()==this.scope.get(i)) break;
			i++;
		}
		return ret;
	}

}
