A modeling of interactions among agents on community security and its evaluation