/*
* @@COPYRIGHT@@
*/
package com.cosylab.acs.maci;
/**
* Helper class to hold COBStatus value.
*
* @author Matej Sekoranja (matej.sekoranja@cosylab.com)
* @version @@VERSION@@
*/
public final class StatusHolder
{
/**
* The ComponentStatus
value held by this StatusHolder
* object in its status
field.
*/
private ComponentStatus status = null;
/**
* Constructs a new StatusHolder
object with its
* status
field initialized to null
.
*/
public StatusHolder()
{
}
/**
* Constructs a new StatusHolder
object with its
* status
field initialized to the given
* ComponentStatus
.
* @param initial the ComponentStatus
with which to initialize
* the status
field of the newly-created
* StatusHolder
object
*/
public StatusHolder(ComponentStatus status)
{
setStatus(status);
}
/**
* Returns the status.
* @return ComponentStatus
*/
public ComponentStatus getStatus()
{
return status;
}
/**
* Sets the status.
* @param status The status to set
*/
public void setStatus(ComponentStatus status)
{
this.status = status;
}
}