Skip to main content

setCellValue

Sets the variables of the cell object according to a boolean input.

Parameters

a boolean to describe the value of this cell according to the following inputs:

inputmeaningis_setis_up
trueheddle is up / liftedtruetrue
falseheddle is down / loweredtruefalse
nullheddle is unsetfalsefalse

Returns

Cell

Implementation

if(getCellValue(c) == null){
c = setCellValue(true);
}

This function checks if Cell c is unset and, if so, it changes it to be true.