public boolean updateStatusTo(List<String> desiredStatus, boolean value)
            throws ShanksException {
        boolean allStatusUpdated = false;
        for (String status : desiredStatus) {
            if (this.isPossibleStatus(status)) {
                states.put(status, value);
                logger.fine("Network Element Status updated -> ElementID: "
                        + this.getID() + " Current Status: " + status);
            } else {
                logger.warning("Impossible to update status: " + status
                        + ". This network element " + this.getID()
                        + "does not support this status.");
                throw new UnsupportedNetworkElementFieldException(this, status);
            }
        }
        allStatusUpdated = true;
        return allStatusUpdated;
    }
public boolean updateStatusTo ( List < String > desiredStatus , boolean value ) throws ShanksException { boolean allStatusUpdated = false ; for ( String status : desiredStatus ) { if ( this . isPossibleStatus ( status ) ) { states . put ( status , value ) ; logger . fine ( "Network Element Status updated -> ElementID: " + this . getID ( ) + " Current Status: " + status ) ; } else { logger . warning ( "Impossible to update status: " + status + ". This network element " + this . getID ( ) + "does not support this status." ) ; throw new UnsupportedNetworkElementFieldException ( this , status ) ; } } allStatusUpdated = true ; return allStatusUpdated ; }
@param desiredStatus
the currentStatus to set
@return true if the status was set correctly and false if the status is
not a possible status of the network element
@throws UnsupportedNetworkElementFieldException