Adempiere 3.5.2a

org.eevolution.form.crp
Class CRPDatasetFactory

java.lang.Object
  extended by org.eevolution.model.reasoner.CRPReasoner
      extended by org.eevolution.form.crp.CRPDatasetFactory
All Implemented Interfaces:
CRPModel

public abstract class CRPDatasetFactory
extends CRPReasoner
implements CRPModel

Version:
1.0, October 14th 2005
Author:
Gunther Hoppe, tranSIT GmbH Ilmenau/Germany

Field Summary
protected  org.jfree.data.category.DefaultCategoryDataset dataset
           
protected  JTree tree
           
 
Fields inherited from class org.eevolution.model.reasoner.CRPReasoner
RESTRICTION_DAY_CASE_1, RESTRICTION_DAY_CASE_2, RESTRICTION_DAY_CASE_3, RESTRICTION_DAY_CASE_4
 
Constructor Summary
CRPDatasetFactory()
           
 
Method Summary
protected  HashMap addTreeNodes(Timestamp dateTime, DefaultMutableTreeNode root, MResource r)
           
 BigDecimal calculateLoad(Timestamp dateTime, MResource r, String docStatus)
           
protected  long calculateMillisForDay(Timestamp dateTime, MPPOrderNode node, MResourceType t)
           
protected abstract  BigDecimal convert(BigDecimal value)
           
protected  boolean generate(Timestamp start, Timestamp end, MResource r)
           
static CRPModel get(Timestamp start, Timestamp end, MResource r)
           
 org.jfree.data.category.CategoryDataset getDataset()
           
protected  Timestamp[] getDayBorders(Timestamp dateTime, MPPOrderNode node, MResourceType t)
           
protected  BigDecimal getMaxRange(MResource r)
           
 JTree getTree()
           
protected  String getTreeNodeRepresentation(Timestamp dateTime, DefaultMutableTreeNode node, MResource r)
           
 
Methods inherited from class org.eevolution.model.reasoner.CRPReasoner
checkResourceAvailability, checkResourceTypeAvailability, checkResourceTypeAvailability, getBorderDayMax, getBorderDayMin, getPPOrderNodes, getPPOrders, getPPOrdersNotCompleted, getPPOrderWorkflow, isResourceAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

protected JTree tree

dataset

protected org.jfree.data.category.DefaultCategoryDataset dataset
Constructor Detail

CRPDatasetFactory

public CRPDatasetFactory()
Method Detail

convert

protected abstract BigDecimal convert(BigDecimal value)

get

public static CRPModel get(Timestamp start,
                           Timestamp end,
                           MResource r)

generate

protected boolean generate(Timestamp start,
                           Timestamp end,
                           MResource r)

calculateLoad

public BigDecimal calculateLoad(Timestamp dateTime,
                                MResource r,
                                String docStatus)
Specified by:
calculateLoad in interface CRPModel

getDayBorders

protected Timestamp[] getDayBorders(Timestamp dateTime,
                                    MPPOrderNode node,
                                    MResourceType t)

calculateMillisForDay

protected long calculateMillisForDay(Timestamp dateTime,
                                     MPPOrderNode node,
                                     MResourceType t)

addTreeNodes

protected HashMap addTreeNodes(Timestamp dateTime,
                               DefaultMutableTreeNode root,
                               MResource r)

getTreeNodeRepresentation

protected String getTreeNodeRepresentation(Timestamp dateTime,
                                           DefaultMutableTreeNode node,
                                           MResource r)

getMaxRange

protected BigDecimal getMaxRange(MResource r)

getDataset

public org.jfree.data.category.CategoryDataset getDataset()
Specified by:
getDataset in interface CRPModel

getTree

public JTree getTree()
Specified by:
getTree in interface CRPModel

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.