本文整理了Java中com.jamonapi.Monitor.getLastValue()
方法的一些代码示例,展示了Monitor.getLastValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.getLastValue()
方法的具体详情如下:
包路径:com.jamonapi.Monitor
类名称:Monitor
方法名:getLastValue
暂无
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* Gets the last value.
*
* @return last value
*
* @see com.jamonapi.Monitor#getLastValue()
*/
public double getLastValue() {
return monitor.getLastValue();
}
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* Gets the last value.
*
* @return last value
*
* @see com.jamonapi.Monitor#getLastValue()
*/
@Override
public double getLastValue() {
return monitor.getLastValue();
}
代码示例来源:origin: stevensouza/jamonapi
/** Pass in list and add monitor data to the end of it */
public Object[] getData(List dataList, Monitor mon) {
dataList.add(new Double(mon.getLastValue()));
dataList.add(new Double(mon.getActive()));
dataList.add(mon.getLastAccess());
return dataList.toArray();
}
代码示例来源:origin: stevensouza/jamonapi
/** Return an array with spaces for the values in header and values populated for monitor data - last value, active and last access */
public Object[] getData(Monitor mon) {
Object[] retData=new Object[header.length];// all but the 2 values will be null and will be replaced by caller.
retData[lastValueIndex]=new Double(mon.getLastValue());
retData[activeIndex]=new Double(mon.getActive());
retData[dateIndex]=mon.getLastAccess();
return retData;
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
public double getLastValue() {
Date date=getLastAccess();
for (int i=0;i<numRows;i++) {
if (date.compareTo(monitors[i].getLastAccess())>=0) // date>=getLastAccess)
return monitors[i].getLastValue();
}
return 0;
}
代码示例来源:origin: stevensouza/jamonapi
@Override
public double getLastValue() {
Date date=getLastAccess();
for (int i=0;i<numRows;i++) {
if (date.compareTo(monitors[i].getLastAccess())>=0) // date>=getLastAccess)
return monitors[i].getLastValue();
}
return 0;
}
代码示例来源:origin: stevensouza/jamonapi
/** Ranges are implemented as JAMonListeners */
public void processEvent(Monitor mon) {
double value=mon.getLastValue();
getFrequencyDist(value).add(value);
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
/** Ranges are implemented as JAMonListeners */
public void processEvent(Monitor mon) {
double value=mon.getLastValue();
getFrequencyDist(value).add(value);
}
代码示例来源:origin: stevensouza/jamonapi
b.append(getMonKey() + ": (");
b.append("LastValue=");
b.append(getLastValue());
b.append(", Hits=");
b.append(getHits());
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
b.append(getMonKey() + ": (");
b.append("LastValue=");
b.append(getLastValue());
b.append(", Hits=");
b.append(getHits());
代码示例来源:origin: stevensouza/jamonapi
return new Double(getStdDev());
else if (VALUE.equalsIgnoreCase(key) || LASTVALUE.equalsIgnoreCase(key))
return new Double(getLastValue());
else if (LASTACCESS.equalsIgnoreCase(key))
return getLastAccess();
代码示例来源:origin: AskNowQA/AutoSPARQL
templates = templateGenerator.buildTemplates(question);
monitor.stop();
logger.trace("Done in " + monitor.getLastValue() + "ms.");
if(templates.isEmpty()){
throw new NoTemplateFoundException();
Map<Template, Map<Slot, Collection<Entity>>> template2Allocations = entityDisambiguation.performEntityDisambiguation(templates);
monitor.stop();
logger.trace("Done in " + monitor.getLastValue() + "ms.");
Map<Template, List<TemplateInstantiation>> template2Instantiations = instantiateTemplates(template2Allocations);
monitor.stop();
logger.trace("Done in " + monitor.getLastValue() + "ms.");
Ranking ranking = rankingComputation.computeRanking(template2Instantiations, template2Allocations, parameters);
monitor.stop();
logger.trace("Done in " + monitor.getLastValue() + "ms.");
代码示例来源:origin: SmartDataAnalytics/DL-Learner
private void runIterative() {
// get the candidates
Set<OWLClass> candidates = reasoner.getNonEmptyOWLClasses();
// check for each candidate how often the subject belongs to it
int i = 1;
Monitor mon = MonitorFactory.getTimeMonitor("dom-class-time");
for (OWLClass candidate : candidates) {
mon.start();
logger.debug("Candidate:" + candidate);
progressMonitor.learningProgressChanged(axiomType, i++, candidates.size());
// get total number of instances of B
int cntB = reasoner.getPopularity(candidate);
if(cntB == 0){// skip empty classes
logger.debug("Cannot compute domain statements for empty candidate class " + candidate);
continue;
}
// get number of instances of (A AND B)
SUBJECTS_OF_TYPE_COUNT_QUERY.setIri("type", candidate.toStringID());
int cntAB = executeSelectQuery(SUBJECTS_OF_TYPE_COUNT_QUERY.toString()).next().getLiteral("cnt").getInt();
logger.debug("Candidate:" + candidate + "\npopularity:" + cntB + "\noverlap:" + cntAB);
// compute score
AxiomScore score = computeScore(popularity, cntB, cntAB);
currentlyBestAxioms.add(
new EvaluatedAxiom<>(
df.getOWLObjectPropertyDomainAxiom(entityToDescribe, candidate),
score));
mon.stop();
logger.debug(candidate + " analyzed in " + mon.getLastValue());
}
}
代码示例来源:origin: SmartDataAnalytics/DL-Learner
public FinalizedMonitor(Monitor m){
header = (String)m.getMonKey().getValue(MonKey.LABEL_HEADER);
units = (String)m.getMonKey().getValue(MonKey.UNITS_HEADER);
avg = m.getAvg();
hits = m.getHits();
stdDev = m.getStdDev();
lastValue = m.getLastValue();
max = m.getMax();
min = m.getMin();
total = m.getTotal();
}
代码示例来源:origin: SmartDataAnalytics/DL-Learner
Model cbd = cbdGen.getConciseBoundedDescription(resource, maxTreeDepth);
mon.stop();
logger.info("got {} triples in {}ms.", cbd.size(), mon.getLastValue());
RDFResourceTree tree = queryTreeFactory.getQueryTree(resource, cbd, maxTreeDepth);
mon.stop();
logger.info("generating query tree for {} took {}ms.", resource, mon.getLastValue());
代码示例来源:origin: SmartDataAnalytics/DL-Learner
Model cbd = cbdGen.getConciseBoundedDescription(resource, cbdStructure);
mon.stop();
logger.info("got {} triples in {}ms.", cbd.size(), mon.getLastValue());
RDFResourceTree tree = queryTreeFactory.getQueryTree(resource, cbd, maxTreeDepth);
mon.stop();
logger.info("generating query tree for {} took {}ms.", resource, mon.getLastValue());
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* @see patterntesting.runtime.monitor.ProfileMonitor#toCsvString()
*/
public String toCsvString() {
return monitor.getLabel() + "; " + monitor.getUnits() + "; "
+ monitor.getLastValue() + "; " + (long) monitor.getHits()
+ "; " + monitor.getAvg() + "; " + monitor.getTotal() + "; "
+ monitor.getMin() + "; " + monitor.getMax() + "; "
+ monitor.getActive() + "; " + monitor.getAvgActive() + "; "
+ monitor.getMaxActive() + "; " + monitor.getFirstAccess()
+ "; " + monitor.getLastAccess() + ";";
}
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* To csv string.
*
* @return the string
* @see patterntesting.runtime.monitor.ProfileMonitor#toCsvString()
*/
@Override
public String toCsvString() {
return '"' + monitor.getLabel() + "\"; " + monitor.getUnits() + "; " + monitor.getLastValue() + "; "
+ (long) monitor.getHits() + "; " + monitor.getAvg() + "; " + monitor.getTotal() + "; "
+ monitor.getMin() + "; " + monitor.getMax() + "; " + monitor.getActive() + "; "
+ monitor.getAvgActive() + "; " + monitor.getMaxActive() + "; " + monitor.getFirstAccess() + "; "
+ monitor.getLastAccess() + ";";
}
代码示例来源:origin: stevensouza/jamonapi
public MonitorDelta(Monitor mon) {
label = mon.getLabel();
units = mon.getUnits();
hits = mon.getHits();
total = mon.getTotal();
avg = mon.getAvg();
min = mon.getMin();
max = mon.getMax();
stdDev = mon.getStdDev();
firstAccess = mon.getFirstAccess();
lastAccess = mon.getLastAccess();
lastValue = mon.getLastValue();
active = mon.getActive();
maxActive = mon.getMaxActive();
avgActive = mon.getAvgActive();
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
String message = name + " execution time: " + mon.stop().getLastValue();
System.out.println(message);
内容来源于网络,如有侵权,请联系作者删除!