sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/model/ProfiledThread.java
changeset 5 844b047e260d
parent 2 b9ab3b238396
child 12 ae255c9aa552
equal deleted inserted replaced
4:615035072f7e 5:844b047e260d
    31 
    31 
    32 	private char name; //char symbol of the thread
    32 	private char name; //char symbol of the thread
    33 
    33 
    34 	private int threadId; //thread's real id
    34 	private int threadId; //thread's real id
    35  
    35  
    36 	public ProfiledThread()
    36 	public ProfiledThread(int cpuCount, int graphCount)
    37 	{
    37 	{
    38 		super();
    38 		super(cpuCount, graphCount);
    39 	}
    39 	}
    40   
    40   
    41 	public void setNameValues(char symbol,String nameString)
    41 	public void setNameValues(char symbol,String nameString)
    42 	{
    42 	{
    43 		this.name = symbol;
    43 		this.name = symbol;
    44 		setNameString(nameString);
    44 		setNameString(nameString);
    45 	}
    45 	}
    46  
    46  
    47 	public String toString(int graphIndex)
    47 	//unused?
    48 	{
    48 //	public String toString(int graphIndex)
    49 		if (this.isEnabled(graphIndex))
    49 //	{
    50 		{
    50 //		if (this.isEnabled(graphIndex))
    51 			return "true  " + this.getAverageLoadValueString(graphIndex) + getNameString(); //$NON-NLS-1$
    51 //		{
    52 		}
    52 //			return "true  " + this.getAverageLoadValueString(graphIndex) + getNameString(); //$NON-NLS-1$
    53 		else
    53 //		}
    54 		{
    54 //		else
    55 			return "false " + this.getAverageLoadValueString(graphIndex) + getNameString(); //$NON-NLS-1$
    55 //		{
    56 		}
    56 //			return "false " + this.getAverageLoadValueString(graphIndex) + getNameString(); //$NON-NLS-1$
    57 	}
    57 //		}
       
    58 //	}
    58   
    59   
    59 	public Character getName(){
    60 	public Character getName(){
    60 		return new Character(this.name);
    61 		return new Character(this.name);
    61 	}
    62 	}
    62 
    63