hep.lcd.vertexing.zvtop
Class BasicFitStatus

java.lang.Object
  |
  +--hep.lcd.vertexing.zvtop.BasicFitStatus
Direct Known Subclasses:
ZvFitStatus, ZvgGTFStatus, ZvTopStatus

public class BasicFitStatus
extends Object
implements FitStatusInt

BasicFitStatus -- status object for fits

Version:
$Id: BasicFitStatus.java,v 1.3 2001/06/13 23:51:14 walkowia Exp $
Author:
W.Walkowiak, 11/20/00
Source Code:
BasicFitStatus.java

Field Summary
protected  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(String status)
           
BasicFitStatus(String status, String message)
           
 
Method Summary
 FitStatusInt addMessage(String message)
          add to text message
 boolean equals(FitStatusInt status)
          Are the status words equal?
 String getMessage()
          get the text message
 String getStatus()
          get the current status
 boolean isOK()
          Fit status ok?
 FitStatusInt setStatus(String status)
          set the status
 boolean success()
          successful fitting?
 String toString()
          phrase the status into a String
 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 String status
Constructor Detail

BasicFitStatus

public BasicFitStatus()

BasicFitStatus

public BasicFitStatus(String status)

BasicFitStatus

public BasicFitStatus(String status,
                      String message)

BasicFitStatus

public BasicFitStatus(FitStatusInt prevStatus)
copy constructor
Method Detail

setStatus

public FitStatusInt setStatus(String status)
set the status
Specified by:
setStatus in interface FitStatusInt

getStatus

public String getStatus()
get the current status
Specified by:
getStatus in interface FitStatusInt

addMessage

public FitStatusInt addMessage(String message)
add to text message
Specified by:
addMessage in interface FitStatusInt

getMessage

public 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 String toString()
phrase the status into a String
Specified by:
toString in interface FitStatusInt
Overrides:
toString in class Object

toStringWithMessage

public String toStringWithMessage()
phrase the status into a string including the text message
Specified by:
toStringWithMessage in interface FitStatusInt


The LCD Group