public Object getValueAt(int row, int col) { Object ret = null; GoalInfo info = (GoalInfo)goals.get(row); if(col==0) { ret = info.getType()+"#"+info.getId(); } else if(col==1) { ret = info.getLifecycleState(); } else if(col==2) { ret = info.getProcessingState(); } return ret; }
public Component getTableCellRendererComponent(JTable table, Object value, boolean sel, boolean foc, int row, int column) { GoalInfo info = (GoalInfo)goals.get(row); Icon icon = icons.getIcon(info.getKind()); if(icon==null) icon = icons.getIcon("goal"); setIcon(icon); return super.getTableCellRendererComponent(table, value, sel, foc, row, column); } });
/** * */ public void publishToolGoalEvent(String evtype) { if(getInterpreter().hasEventTargets(PublishTarget.TOSUBSCRIBERS, PublishEventLevel.FINE)) { long time = System.currentTimeMillis();//getClockService().getTime(); MonitoringEvent mev = new MonitoringEvent(); mev.setSourceIdentifier(getInterpreter().getComponentIdentifier()); mev.setTime(time); GoalInfo info = GoalInfo.createGoalInfo(this); mev.setType(evtype+"."+IMonitoringEvent.SOURCE_CATEGORY_GOAL); // mev.setProperty("sourcename", element.toString()); mev.setProperty("sourcetype", info.getType()); mev.setProperty("details", info); mev.setLevel(PublishEventLevel.FINE); getInterpreter().publishEvent(mev, PublishTarget.TOSUBSCRIBERS); } }
if(checkCapa(gi.getType())) goals.add(gi); GoalInfo oldinfo = (GoalInfo)allgoals.remove(index); goals.remove(newinfo); newinfo.setType(oldinfo.getType()); // Hack!!! Keep capability information which is unavailable for modified events. allgoals.add(newinfo); if(checkCapa(newinfo.getType())) goals.add(newinfo);
GoalInfo info = GoalInfo.createGoalInfo(goal); MonitoringEvent ev = new MonitoringEvent(getComponentIdentifier(), getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_GOAL, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(goal.toString());
return new GoalInfo(id, kind, type, goal.getLifecycleState().toString(), goal.getProcessingState().toString());
/** * */ public void publishToolGoalEvent(String evtype) { if(getAgent().getComponentFeature0(IMonitoringComponentFeature.class)!=null && getAgent().getComponentFeature(IMonitoringComponentFeature.class).hasEventTargets(PublishTarget.TOSUBSCRIBERS, PublishEventLevel.FINE)) { long time = System.currentTimeMillis();//getClockService().getTime(); MonitoringEvent mev = new MonitoringEvent(); mev.setSourceIdentifier(getAgent().getComponentIdentifier()); mev.setTime(time); GoalInfo info = GoalInfo.createGoalInfo(this); mev.setType(evtype+"."+IMonitoringEvent.SOURCE_CATEGORY_GOAL); // mev.setProperty("sourcename", element.toString()); mev.setProperty("sourcetype", info.getType()); mev.setProperty("details", info); mev.setLevel(PublishEventLevel.FINE); getAgent().getComponentFeature(IMonitoringComponentFeature.class).publishEvent(mev, PublishTarget.TOSUBSCRIBERS); } }
if(checkCapa(gi.getType())) goals.add(gi); GoalInfo oldinfo = (GoalInfo)allgoals.remove(index); goals.remove(newinfo); newinfo.setType(oldinfo.getType()); // Hack!!! Keep capability information which is unavailable for modified events. allgoals.add(newinfo); if(checkCapa(newinfo.getType())) goals.add(newinfo);
GoalInfo info = GoalInfo.createGoalInfo(goal); MonitoringEvent ev = new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_GOAL, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(goal.toString());
return new GoalInfo(id, kind, type, goal.getLifecycleState().toString(), goal.getProcessingState().toString());
public Object getValueAt(int row, int col) { Object ret = null; GoalInfo info = (GoalInfo)goals.get(row); if(col==0) { ret = info.getType()+"#"+info.getId(); } else if(col==1) { ret = info.getLifecycleState(); } else if(col==2) { ret = info.getProcessingState(); } return ret; }
GoalInfo info = GoalInfo.createGoalInfo(goal); MonitoringEvent ev = new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_GOAL, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(goal.toString());
public Component getTableCellRendererComponent(JTable table, Object value, boolean sel, boolean foc, int row, int column) { GoalInfo info = (GoalInfo)goals.get(row); Icon icon = icons.getIcon(info.getKind()); if(icon==null) icon = icons.getIcon("goal"); setIcon(icon); return super.getTableCellRendererComponent(table, value, sel, foc, row, column); } });
GoalInfo info = GoalInfo.createGoalInfo(goal); MonitoringEvent ev = new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_GOAL, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(goal.toString());