/** * Description of the agent with the connection information. * * @param agent * {@link PlatformIdent} * @param agentStatusData * {@link AgentStatusData}. * @return Description of the agent. */ public static String getAgentDescription(PlatformIdent agent, AgentStatusData agentStatusData) { return agent.getAgentName() + getStyledAgentDescription(agent, agentStatusData).getString(); }
/** * Returns {@link StyledString} for the {@link AgentLeaf}. * * @param agentLeaf * {@link AgentLeaf}. * @return Returns {@link StyledString} for the {@link AgentLeaf}. */ public static StyledString getStyledAgentLeafString(AgentLeaf agentLeaf) { StyledString styledString = new StyledString(); if (agentLeaf.isInFolder()) { styledString.append(AgentFolderFactory.getAgentDisplayNameInFolder(agentLeaf.getPlatformIdent().getAgentName())); } else { styledString.append(agentLeaf.getPlatformIdent().getAgentName()); } styledString.append(getStyledAgentDescription(agentLeaf.getPlatformIdent(), agentLeaf.getAgentStatusData())); return styledString; }