Skip to main content

getCellValue

Returns a boolean value describing the value of this heddle as true, false, or unset.

Parameters

Cell

Returns

boolean (corresponding to heddle up or down) or null (meaning heddle is unset)

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

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.