ProcedureClassData.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.common.util;
00002 
00003 import java.io.Serializable;
00004 
00005 import org.eclipse.swt.graphics.Color;
00006 import org.eclipse.swt.graphics.RGB;
00007 
00008 /*****
00009  * 
00010  * Class to store procedure class and its data
00011  *
00012  */
00013 public class ProcedureClassData implements Serializable
00014 {
00018     private static final long serialVersionUID = 1704953739329962260L;
00019     
00020     private String procClass;
00021     private RGB rgb;
00022     
00023     /***
00024      * Initialize object using color data
00025      * 
00026      * @param procClass
00027      * @param color
00028      */
00029     public ProcedureClassData( String procClass, Color color ) {
00030         this.procClass = procClass;
00031         this.rgb = color.getRGB();
00032     }
00033 
00034     /****
00035      * Object initialization with RGB data
00036      * @param procClass
00037      * @param rgb
00038      */
00039     public ProcedureClassData( String procClass, RGB rgb ) {
00040         this.procClass = procClass;
00041         this.rgb = rgb;
00042     }
00043 
00044     /****
00045      * get the procedure class of this object
00046      * @return
00047      */
00048     public String getProcedureClass() {
00049         return procClass;
00050     }
00051     
00052     /****
00053      * get the data (rgb) of this object
00054      * @return
00055      */
00056     public RGB getRGB() {
00057         return rgb;
00058     }
00059 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1