hep.lcd.vertexing.zvtop
Class BasicFitStatus

java.lang.Object
  extended byhep.lcd.vertexing.zvtop.BasicFitStatus
All Implemented Interfaces:
FitStatus, FitStatusInt
Direct Known Subclasses:
ZvFitStatus, ZvgGTFStatus, ZvTopStatus

public class BasicFitStatus
extends java.lang.Object
implements FitStatusInt

BasicFitStatus -- status object for fits

Version:
$Id: BasicFitStatus.java,v 1.4 2002/10/25 01:13:10 walkowia Exp $
Author:
W.Walkowiak, 11/20/00

Field Summary
protected  java.lang.String status
           
 
Fields inherited from interface hep.lcd.vertexing.zvtop.FitStatusInt
NOT_FITTED, OK, UNKNOWN_ERROR
 
Constructor Summary
BasicFitStatus()
           
BasicFitStatus(FitStatusInt prevStatus)
          copy constructor
BasicFitStatus(java.lang.String status)
           
BasicFitStatus(java.lang.String status, java.lang.String message)
           
 
Method Summary
 FitStatusInt addMessage(java.lang.String message)
          add to text message
 boolean equals(FitStatusInt status)
          Are the status words equal?
 java.lang.String getMessage()
          get the text message
 java.lang.String getStatus()
          get the current status
 boolean isOK()
          Fit status ok?
 FitStatusInt setStatus(java.lang.String status)
          set the status
 boolean success()
          successful fitting?
 java.lang.String toString()
          phrase the status into a String
 java.lang.String toStringWithMessage()
          phrase the status into a string including the text message
 boolean unknownError()
          unknown error?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

status

protected java.lang.String status
Constructor Detail

BasicFitStatus

public BasicFitStatus()

BasicFitStatus

public BasicFitStatus(java.lang.String status)

BasicFitStatus

public BasicFitStatus(java.lang.String status,
                      java.lang.String message)

BasicFitStatus

public BasicFitStatus(FitStatusInt prevStatus)
copy constructor

Method Detail

setStatus

public FitStatusInt setStatus(java.lang.String status)
set the status

Specified by:
setStatus in interface FitStatusInt

getStatus

public java.lang.String getStatus()
get the current status

Specified by:
getStatus in interface FitStatusInt

addMessage

public FitStatusInt addMessage(java.lang.String message)
add to text message

Specified by:
addMessage in interface FitStatusInt

getMessage

public java.lang.String getMessage()
get the text message

Specified by:
getMessage in interface FitStatusInt

isOK

public boolean isOK()
Fit status ok?

Specified by:
isOK in interface FitStatus
See Also:
success()

success

public boolean success()
successful fitting?

Specified by:
success in interface FitStatusInt

unknownError

public boolean unknownError()
unknown error?

Specified by:
unknownError in interface FitStatusInt

equals

public boolean equals(FitStatusInt status)
Are the status words equal?

Specified by:
equals in interface FitStatusInt

toString

public java.lang.String toString()
phrase the status into a String

Specified by:
toString in interface FitStatusInt

toStringWithMessage

public java.lang.String toStringWithMessage()
phrase the status into a string including the text message

Specified by:
toStringWithMessage in interface FitStatusInt


The LCD Group