Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.unibe.iam.scg.archie.ui.charts
Class PatientsConsHistDatasetCreator

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by ch.unibe.iam.scg.archie.ui.charts.AbstractDatasetCreator
                  extended by ch.unibe.iam.scg.archie.ui.charts.PatientsConsHistDatasetCreator
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable

public class PatientsConsHistDatasetCreator
extends AbstractDatasetCreator

Creates dataset for PatientsConsHistChart.

$Id$


Field Summary
 
Fields inherited from class ch.unibe.iam.scg.archie.ui.charts.AbstractDatasetCreator
dataset
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
 
Constructor Summary
PatientsConsHistDatasetCreator(java.lang.String jobName, int cohortSize)
          Creates a AgeHistogrammDatasetCreator
 
Method Summary
 org.eclipse.core.runtime.IStatus createContent(org.eclipse.core.runtime.IProgressMonitor monitor)
          Creates the content for this dataset creator.
protected  boolean isDatasetEmpty()
          Method to work around the incapability of finding out whether the dataset has any data in it or not.
 void setCohortSize(int cohortSize)
          Sets the cohort size for this creator.
 
Methods inherited from class ch.unibe.iam.scg.archie.ui.charts.AbstractDatasetCreator
getDataset, run
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

PatientsConsHistDatasetCreator

public PatientsConsHistDatasetCreator(java.lang.String jobName,
                                      int cohortSize)
Creates a AgeHistogrammDatasetCreator

Parameters:
jobName -
cohortSize -
Method Detail

createContent

public org.eclipse.core.runtime.IStatus createContent(org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from class: AbstractDatasetCreator
Creates the content for this dataset creator. Subclasses need to implement this method and do their main work in here - create the dataset.

Specified by:
createContent in class AbstractDatasetCreator
Returns:
Status that reflect the outcome of the content creation.

setCohortSize

public void setCohortSize(int cohortSize)
Sets the cohort size for this creator.

Parameters:
cohortSize -

isDatasetEmpty

protected boolean isDatasetEmpty()
Description copied from class: AbstractDatasetCreator
Method to work around the incapability of finding out whether the dataset has any data in it or not. The method returns false by default so that even empty dataset get rendered. If a subclass overrides this method, other objects can check for it and e.g. display a warning or information message instead of an empty graph.

Overrides:
isDatasetEmpty in class AbstractDatasetCreator
Returns:
True if the dataset is empty, false else. Returns false by default.

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013