org.kuali.rice.krms.framework.engine.result
Class BasicResult

java.lang.Object
  extended by java.util.EventObject
      extended by org.kuali.rice.krms.framework.engine.result.BasicResult
All Implemented Interfaces:
Serializable, ResultEvent

public class BasicResult
extends EventObject
implements ResultEvent

An implementation of ResultEvent

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  String description
           
protected  ExecutionEnvironment environment
           
protected  Boolean result
           
protected  Map<String,?> resultDetails
           
protected  org.joda.time.DateTime timestamp
           
protected  String type
           
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface org.kuali.rice.krms.api.engine.ResultEvent
ACTION_EXECUTED, PROPOSITION_EVALUATED, RULE_EVALUATED, TIMING_EVENT
 
Constructor Summary
BasicResult(Map<String,?> resultDetails, String eventType, Object source, ExecutionEnvironment environment, boolean result)
          Constructor
BasicResult(Map<String,?> resultDetails, String description, String eventType, Object source, ExecutionEnvironment environment, boolean result)
          Constructor
BasicResult(String eventType, Object source, ExecutionEnvironment environment)
          Constructor
BasicResult(String eventType, Object source, ExecutionEnvironment environment, boolean result)
          Constructor
BasicResult(String description, String eventType, Object source, ExecutionEnvironment environment, boolean result)
          Constructor
 
Method Summary
 String getDescription()
          Returns the description of the ResultEvent as a String
 ExecutionEnvironment getEnvironment()
          Returns the ExecutionEnvironment of the ResultEvent.
 Boolean getResult()
          Returns the Boolean result of the ResultEvent.
 Map<String,?> getResultDetails()
          Returns the result details of the ResultEvent as an unmodifiable Map
 org.joda.time.DateTime getTimestamp()
          Returns the org.joda.time.DateTime timestamp of the ResultEvent.
 String getType()
          Returns the type of the ResultEvent.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krms.api.engine.ResultEvent
getSource
 

Field Detail

type

protected String type

timestamp

protected org.joda.time.DateTime timestamp

environment

protected ExecutionEnvironment environment

result

protected Boolean result

description

protected String description

resultDetails

protected Map<String,?> resultDetails
Constructor Detail

BasicResult

public BasicResult(Map<String,?> resultDetails,
                   String eventType,
                   Object source,
                   ExecutionEnvironment environment,
                   boolean result)
Constructor

Parameters:
resultDetails - of the ResultEvent
eventType - String of the ResultEvent
source - Object of the ResultEvent
environment - ExecutionEnvironment
result - boolean of the ResultEvent

BasicResult

public BasicResult(Map<String,?> resultDetails,
                   String description,
                   String eventType,
                   Object source,
                   ExecutionEnvironment environment,
                   boolean result)
Constructor

Parameters:
resultDetails - of the ResultEvent
description - String of the ResultEvent
eventType - String of the ResultEvent
source - Object of the ResultEvent
environment - ExecutionEnvironment
result - boolean of the ResultEvent

BasicResult

public BasicResult(String description,
                   String eventType,
                   Object source,
                   ExecutionEnvironment environment,
                   boolean result)
Constructor

Parameters:
description - String of the ResultEvent
eventType - String of the ResultEvent
source - Object of the ResultEvent
environment - ExecutionEnvironment
result - boolean of the ResultEvent

BasicResult

public BasicResult(String eventType,
                   Object source,
                   ExecutionEnvironment environment,
                   boolean result)
Constructor

Parameters:
eventType - String of the ResultEvent
source - Object of the ResultEvent
environment - ExecutionEnvironment
result - boolean of the ResultEvent

BasicResult

public BasicResult(String eventType,
                   Object source,
                   ExecutionEnvironment environment)
Constructor

Parameters:
eventType - String of the ResultEvent
source - Object of the ResultEvent
environment - ExecutionEnvironment
Method Detail

getType

public String getType()
Description copied from interface: ResultEvent
Returns the type of the ResultEvent.

Specified by:
getType in interface ResultEvent
Returns:
String of the type of ResultEvent.

getTimestamp

public org.joda.time.DateTime getTimestamp()
Description copied from interface: ResultEvent
Returns the org.joda.time.DateTime timestamp of the ResultEvent.

Specified by:
getTimestamp in interface ResultEvent
Returns:
org.joda.time.DateTime timestamp of the ResultEvent.

getEnvironment

public ExecutionEnvironment getEnvironment()
Description copied from interface: ResultEvent
Returns the ExecutionEnvironment of the ResultEvent.

Specified by:
getEnvironment in interface ResultEvent
Returns:
ExecutionEnvironment of the ResultEvent.

getResult

public Boolean getResult()
Description copied from interface: ResultEvent
Returns the Boolean result of the ResultEvent.

Specified by:
getResult in interface ResultEvent
Returns:
Boolean result of the ResultEvent.

getDescription

public String getDescription()
Description copied from interface: ResultEvent
Returns the description of the ResultEvent as a String

Specified by:
getDescription in interface ResultEvent
Returns:
description of the ResultEvent as a String

getResultDetails

public Map<String,?> getResultDetails()
Returns the result details of the ResultEvent as an unmodifiable Map

Specified by:
getResultDetails in interface ResultEvent
Returns:
result details of the ResultEvent as an unmodifiable Map

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.