com.mmm.cms.homehealth
Class HomeHealthEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mmm.cms.homehealth.HomeHealthEvent
All Implemented Interfaces:
HomeHealthEventIF, java.io.Serializable

public class HomeHealthEvent
extends java.util.EventObject
implements HomeHealthEventIF

The Home Health Event object used to notify Listener objects of what is happening during record scoring and validation

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface com.mmm.cms.homehealth.proto.HomeHealthEventIF
EVENT_ID_SCORING_EXCEPTION, EVENT_ID_SCORING_FINISHED, EVENT_ID_SCORING_GENERAL, EVENT_ID_SCORING_INCREASED, EVENT_ID_SCORING_SECTION_FINISHED, EVENT_ID_SCORING_SECTION_STARTING, EVENT_ID_SCORING_STARTING, EVENT_ID_SCORING_WARNING, EVENT_ID_VALIDATION_ISSUE
 
Constructor Summary
HomeHealthEvent(HomeHealthGrouperIF source)
          Constructor with the basic information of the Home Health Grouper as the source object
HomeHealthEvent(int eventId, HomeHealthGrouperIF source, HomeHealthRecordIF record, java.lang.String message, HomeHealthScoringModelIF model)
          Constructor with all the required information in one call
 
Method Summary
 int getEventId()
          get the event id
 java.lang.Exception getException()
          gets any Exception generated, if any
 HomeHealthGrouperIF getGrouper()
          The Home Health Grouper that cause the event
 java.lang.String getMessage()
          gets the message
 HomeHealthScoringModelIF getModel()
          gets the scoring model, if any
 HomeHealthRecordIF getRecord()
          gets the related Home Health Record, if any
 void setEventId(int eventId)
          Sets the event id
 void setException(java.lang.Exception exception)
          Sets the Exceptoin
 void setMessage(java.lang.String message)
          sets the message
 void setModel(HomeHealthScoringModelIF model)
          sets the scoring model
 void setRecord(HomeHealthRecordIF record)
          Sets the Home Health record
 java.lang.String toString()
          A formatted String
 
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
 

Constructor Detail

HomeHealthEvent

public HomeHealthEvent(int eventId,
                       HomeHealthGrouperIF source,
                       HomeHealthRecordIF record,
                       java.lang.String message,
                       HomeHealthScoringModelIF model)
Constructor with all the required information in one call

Parameters:
eventId -
source -
record -
message -
model -

HomeHealthEvent

public HomeHealthEvent(HomeHealthGrouperIF source)
Constructor with the basic information of the Home Health Grouper as the source object

Parameters:
source -
Method Detail

getMessage

public java.lang.String getMessage()
gets the message

Specified by:
getMessage in interface HomeHealthEventIF
Returns:
the message

setMessage

public void setMessage(java.lang.String message)
sets the message

Specified by:
setMessage in interface HomeHealthEventIF
Parameters:
message -

getModel

public HomeHealthScoringModelIF getModel()
gets the scoring model, if any

Specified by:
getModel in interface HomeHealthEventIF
Returns:
the scoring model, can be null

setModel

public void setModel(HomeHealthScoringModelIF model)
sets the scoring model

Specified by:
setModel in interface HomeHealthEventIF
Parameters:
model -

getRecord

public HomeHealthRecordIF getRecord()
gets the related Home Health Record, if any

Specified by:
getRecord in interface HomeHealthEventIF
Returns:
the Home Health record, may be null

setRecord

public void setRecord(HomeHealthRecordIF record)
Sets the Home Health record

Specified by:
setRecord in interface HomeHealthEventIF
Parameters:
record -

getEventId

public int getEventId()
get the event id

Specified by:
getEventId in interface HomeHealthEventIF
Returns:
the event id

setEventId

public void setEventId(int eventId)
Sets the event id

Specified by:
setEventId in interface HomeHealthEventIF
Parameters:
eventId -

getException

public java.lang.Exception getException()
gets any Exception generated, if any

Specified by:
getException in interface HomeHealthEventIF
Returns:
the Exception, may be null

setException

public void setException(java.lang.Exception exception)
Sets the Exceptoin

Specified by:
setException in interface HomeHealthEventIF
Parameters:
exception -

getGrouper

public HomeHealthGrouperIF getGrouper()
The Home Health Grouper that cause the event

Specified by:
getGrouper in interface HomeHealthEventIF
Returns:
the Home Health Grouper

toString

public java.lang.String toString()
A formatted String

Overrides:
toString in class java.util.EventObject
Returns:
formatted String