org.dxc.api.datatypes
Class RecoveryData
Object
org.dxc.api.datatypes.DxcData
org.dxc.api.datatypes.RecoveryData
public class RecoveryData
- extends DxcData
Defines the data structure for system Recovery Info.
Recovery information consists of a hypothetical set of fault modes (with
estimated parameters), a set of commands that represent a recovery action for
the fault modes, and a cost for performing these actions.
Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
RecoveryData
public RecoveryData(long timestamp,
FaultSet faults,
CommandSet commands,
double cost,
String notes)
- Constructor to initialize the RecoveryData with timestamp.
- Parameters:
timestamp
- - message timestamp.faults
- - hypothetical fault setcommands
- - recovery actionscost
- - cost of taking the actionsnotes
- - additional information, such as errors.
RecoveryData
public RecoveryData(FaultSet faults,
CommandSet commands,
double cost,
String notes)
RecoveryData
public RecoveryData(FaultSet faults)
- Constructor to initialize the RecoveryData with nothing but fault set.
- Parameters:
faults
- - hypothetical fault set
RecoveryData
public RecoveryData(FaultSet faults,
CommandSet commands)
getFaults
public FaultSet getFaults()
getCommands
public CommandSet getCommands()
getCost
public double getCost()
getNotes
public String getNotes()
put
public OutputStream put(OutputStream os)
- Description copied from class:
DxcData
- Prints DxcData.
- Specified by:
put
in class DxcData
hashCode
public int hashCode()
- Overrides:
hashCode
in class DxcData
equals
public boolean equals(Object obj)
- Overrides:
equals
in class DxcData