Encoding Protest Duration In An Agent-Based Model As Characteristic Phase Transitions