Optical code division multiple access (OCDMA) has wide applications in the next optical access network. One of its key techniques is construction of address code. Aiming at the facts that most of constructing algorithm of optical orthogonal code (OOC) are based on inner-product representation of OOC