public static TruthValue setFrameTruthValue(ControlFrame frame, TruthValue truthvalue) {
    return (frame.truthValue = (frame.reversePolarityP ? TruthValue.invertTruthValue(truthvalue) : truthvalue));
  }