/*
 * PortEntryInformation
 *
 *
 * Copyright (c) 2003 Kansas State University, Laboratory for the Specification,
 * Analysis, and Transformation of Software
 *
 * This software is licensed under the SAnToS Laboratory Open Academic License.  You
 * should have received a copy of the license with the distribution.  A copy can be
 * found at:
 * http://www.cis.ksu.edu/santos/license.html
 * or you can contact the lab at:
 * SAnToS Laboratory
 * 234 Nichols Hall
 * Manhattan, KS 66506, USA
 */
package edu.ksu.cis.cadena.xmlgen;

/**
 * <p>
 * This class manages the port entry information.
 * eventID represents the id number of a port.
 * If ccm is true, that means this particular port through CMM SERVICE has been represented before.
 * If ksues is true, that means this particular port through KSUES SERVICE has been represented before.
 * <p>
 * 
 * @version 1.0.3 8.20.2003 
 * @author Sue Li
  */
public class PortEntryInformation {
	/** the id number for a port*/
	private int eventID;
	
	/** whether the port has been repesented through CCM service*/
	private boolean ccm;
	
	/** whether the port has been repesented through KSUES service*/
	private boolean ksues; 

	/**
	 * initializes the attributes
	 * @param eventID the id number
	 * @param ccm a boolean value about the CCM service representation of this port
	 * @param ksues boolean value about the KSUES service representation of this port
	 */
	public PortEntryInformation(int eventID, boolean ccm, boolean ksues) {
		this.eventID = eventID;
		this.ccm = ccm;
		this.ksues = ksues;
	}

	/**
	 * tests the CCM value
	 * @return ccm
	 */
	public boolean hasCCM() {
		return ccm;
	}
	
	/**
	 * tests the KSUES value
	 * @return ksues
	 */
	public boolean hasKSUES() {
		return ksues;
	}

	/**
	 * sets the ccm value true 
	 */
	public void setCCM() {
		ccm = true;
	}

	/**
	 * sets the ksues value true
	 */
	public void setKSUES() {
		ksues = true;
	}

	/**
	 * gets the event id
	 * @return an int
	 */
	public int getEventID() {
		return eventID;
	}
}


syntax highlighted by Code2HTML, v. 0.9.1