org.drools.ide.common.client.modeldriven.dt52
Class GuidedDecisionTable52

java.lang.Object
  extended by org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52
All Implemented Interfaces:
Serializable, PortableObject

public class GuidedDecisionTable52
extends Object
implements PortableObject

This is a decision table model for a guided editor. It is not template or XLS based. (template could be done relatively easily by taking a template, as a String, and then String[][] data and driving the SheetListener interface in the decision tables module). This works by taking the column definitions, and combining them with the table of data to produce rule models.

See Also:
Serialized Form

Nested Class Summary
static class GuidedDecisionTable52.TableFormat
           
 
Field Summary
static String ACTIVATION_GROUP_ATTR
           
static String AGENDA_GROUP_ATTR
           
static String AUTO_FOCUS_ATTR
           
static String CALENDARS_ATTR
           
static String DATE_EFFECTIVE_ATTR
           
static String DATE_EXPIRES_ATTR
           
static String DIALECT_ATTR
           
static String DURATION_ATTR
           
static String ENABLED_ATTR
           
static int INTERNAL_ELEMENTS
          Number of internal elements before ( used for offsets in serialization )
static String LOCK_ON_ACTIVE_ATTR
           
static String NEGATE_RULE_ATTR
           
static String NO_LOOP_ATTR
           
static String RULEFLOW_GROUP_ATTR
           
static String SALIENCE_ATTR
          Various attribute names
static String TIMER_ATTR
           
 
Constructor Summary
GuidedDecisionTable52()
           
 
Method Summary
 List<ActionCol52> getActionCols()
           
 AnalysisCol52 getAnalysisCol()
           
 List<Analysis> getAnalysisData()
           
 List<AttributeCol52> getAttributeCols()
           
 AuditLog getAuditLog()
          Retrieve, or lazily instantiate a new, AuditLog.
 String getBoundFactType(String boundName)
           
 BRLActionColumn getBRLColumn(BRLActionVariableColumn col)
           
 BRLConditionColumn getBRLColumn(BRLConditionVariableColumn col)
           
 BRLColumn<?,?> getBRLColumn(BRLVariableColumn col)
           
 Pattern52 getConditionPattern(String boundName)
           
 List<CompositeColumn<? extends BaseColumn>> getConditions()
           
 long getConditionsCount()
           
 List<List<DTCellValue52>> getData()
           
 DescriptionCol52 getDescriptionCol()
           
 List<BaseColumn> getExpandedColumns()
          This method expands Composite columns into individual columns where knowledge of individual columns is necessary; for example separate columns in the user-interface or where individual columns need to be analysed.
 List<MetadataCol52> getMetadataCols()
           
 String getParentName()
           
 Pattern52 getPattern(ConditionCol52 col)
           
 List<Pattern52> getPatterns()
          Return an immutable list of Pattern columns
 RowNumberCol52 getRowNumberCol()
           
 GuidedDecisionTable52.TableFormat getTableFormat()
           
 String getTableName()
           
 String getType(BaseColumn col, SuggestionCompletionEngine sce)
           
 DTDataTypes52 getTypeSafeType(BaseColumn column, SuggestionCompletionEngine sce)
           
 DTDataTypes52 getTypeSafeType(Pattern52 pattern, ActionSetFieldCol52 column, SuggestionCompletionEngine sce)
           
 DTDataTypes52 getTypeSafeType(Pattern52 pattern, ConditionCol52 column, SuggestionCompletionEngine sce)
           
 String[] getValueList(BaseColumn col)
           
 boolean hasDSLSentences()
          Check is the model uses DSLSentences and hence requires expansion
 boolean hasValueList(ActionInsertFactCol52 col)
           
 boolean hasValueList(ActionSetFieldCol52 col)
           
 boolean hasValueList(AttributeCol52 col)
           
 boolean hasValueList(ConditionCol52 col)
           
 void initAnalysisColumn()
           
 boolean isConstraintValid(DTColumnConfig52 col)
           
 void setActionCols(List<ActionCol52> actionCols)
           
 void setAttributeCols(List<AttributeCol52> attributeCols)
           
 void setConditionPatterns(List<CompositeColumn<? extends BaseColumn>> conditionPatterns)
           
 void setData(List<List<DTCellValue52>> data)
           
 void setDescriptionCol(DescriptionCol52 descriptionCol)
           
 void setMetadataCols(List<MetadataCol52> metadataCols)
           
 void setParentName(String parentName)
           
 void setRowNumberCol(RowNumberCol52 rowNumberCol)
           
 void setTableFormat(GuidedDecisionTable52.TableFormat tableFormat)
           
 void setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL_ELEMENTS

public static final int INTERNAL_ELEMENTS
Number of internal elements before ( used for offsets in serialization )

See Also:
Constant Field Values

SALIENCE_ATTR

public static final String SALIENCE_ATTR
Various attribute names

See Also:
Constant Field Values

ENABLED_ATTR

public static final String ENABLED_ATTR
See Also:
Constant Field Values

DATE_EFFECTIVE_ATTR

public static final String DATE_EFFECTIVE_ATTR
See Also:
Constant Field Values

DATE_EXPIRES_ATTR

public static final String DATE_EXPIRES_ATTR
See Also:
Constant Field Values

NO_LOOP_ATTR

public static final String NO_LOOP_ATTR
See Also:
Constant Field Values

AGENDA_GROUP_ATTR

public static final String AGENDA_GROUP_ATTR
See Also:
Constant Field Values

ACTIVATION_GROUP_ATTR

public static final String ACTIVATION_GROUP_ATTR
See Also:
Constant Field Values

DURATION_ATTR

public static final String DURATION_ATTR
See Also:
Constant Field Values

TIMER_ATTR

public static final String TIMER_ATTR
See Also:
Constant Field Values

CALENDARS_ATTR

public static final String CALENDARS_ATTR
See Also:
Constant Field Values

AUTO_FOCUS_ATTR

public static final String AUTO_FOCUS_ATTR
See Also:
Constant Field Values

LOCK_ON_ACTIVE_ATTR

public static final String LOCK_ON_ACTIVE_ATTR
See Also:
Constant Field Values

RULEFLOW_GROUP_ATTR

public static final String RULEFLOW_GROUP_ATTR
See Also:
Constant Field Values

DIALECT_ATTR

public static final String DIALECT_ATTR
See Also:
Constant Field Values

NEGATE_RULE_ATTR

public static final String NEGATE_RULE_ATTR
See Also:
Constant Field Values
Constructor Detail

GuidedDecisionTable52

public GuidedDecisionTable52()
Method Detail

getActionCols

public List<ActionCol52> getActionCols()

getAttributeCols

public List<AttributeCol52> getAttributeCols()

getPatterns

public List<Pattern52> getPatterns()
Return an immutable list of Pattern columns

Returns:

getConditions

public List<CompositeColumn<? extends BaseColumn>> getConditions()

getConditionPattern

public Pattern52 getConditionPattern(String boundName)

getPattern

public Pattern52 getPattern(ConditionCol52 col)

getBoundFactType

public String getBoundFactType(String boundName)

getBRLColumn

public BRLColumn<?,?> getBRLColumn(BRLVariableColumn col)

getBRLColumn

public BRLConditionColumn getBRLColumn(BRLConditionVariableColumn col)

getBRLColumn

public BRLActionColumn getBRLColumn(BRLActionVariableColumn col)

getConditionsCount

public long getConditionsCount()

getData

public List<List<DTCellValue52>> getData()

getAnalysisData

public List<Analysis> getAnalysisData()

getExpandedColumns

public List<BaseColumn> getExpandedColumns()
This method expands Composite columns into individual columns where knowledge of individual columns is necessary; for example separate columns in the user-interface or where individual columns need to be analysed.

Returns:
A List of individual columns

getDescriptionCol

public DescriptionCol52 getDescriptionCol()

getMetadataCols

public List<MetadataCol52> getMetadataCols()

getParentName

public String getParentName()

getRowNumberCol

public RowNumberCol52 getRowNumberCol()

initAnalysisColumn

public void initAnalysisColumn()

getAnalysisCol

public AnalysisCol52 getAnalysisCol()

getTableName

public String getTableName()

getType

public String getType(BaseColumn col,
                      SuggestionCompletionEngine sce)

getTypeSafeType

public DTDataTypes52 getTypeSafeType(BaseColumn column,
                                     SuggestionCompletionEngine sce)

getTypeSafeType

public DTDataTypes52 getTypeSafeType(Pattern52 pattern,
                                     ConditionCol52 column,
                                     SuggestionCompletionEngine sce)

getTypeSafeType

public DTDataTypes52 getTypeSafeType(Pattern52 pattern,
                                     ActionSetFieldCol52 column,
                                     SuggestionCompletionEngine sce)

getValueList

public String[] getValueList(BaseColumn col)

hasValueList

public boolean hasValueList(AttributeCol52 col)

hasValueList

public boolean hasValueList(ConditionCol52 col)

hasValueList

public boolean hasValueList(ActionSetFieldCol52 col)

hasValueList

public boolean hasValueList(ActionInsertFactCol52 col)

isConstraintValid

public boolean isConstraintValid(DTColumnConfig52 col)

setData

public void setData(List<List<DTCellValue52>> data)

setRowNumberCol

public void setRowNumberCol(RowNumberCol52 rowNumberCol)

setDescriptionCol

public void setDescriptionCol(DescriptionCol52 descriptionCol)

setMetadataCols

public void setMetadataCols(List<MetadataCol52> metadataCols)

setAttributeCols

public void setAttributeCols(List<AttributeCol52> attributeCols)

setConditionPatterns

public void setConditionPatterns(List<CompositeColumn<? extends BaseColumn>> conditionPatterns)

setActionCols

public void setActionCols(List<ActionCol52> actionCols)

setParentName

public void setParentName(String parentName)

setTableName

public void setTableName(String tableName)

getTableFormat

public GuidedDecisionTable52.TableFormat getTableFormat()

setTableFormat

public void setTableFormat(GuidedDecisionTable52.TableFormat tableFormat)

hasDSLSentences

public boolean hasDSLSentences()
Check is the model uses DSLSentences and hence requires expansion

Returns:
true if any BRLColumn's contain DSLSentence's

getAuditLog

public AuditLog getAuditLog()
Retrieve, or lazily instantiate a new, AuditLog.

Returns:


Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.