A rule-based water quality model for PC-environment