setKType function

Set the "K.type" attribute