@Override
    public void checkMail() {
		super.checkMail();
		List<Literal> percepts = convertMessageQueueToLiteralList(getTS().getC().getMailBox());
		model.update(percepts);

		Iterator<Message> im = getTS().getC().getMailBox().iterator();
		while (im.hasNext()) {
			Message message  = im.next();
			Literal  percept = Literal.parseLiteral(message.getPropCont().toString());
			String  p = percept.getFunctor();

//            String  ms = message.getPropCont().toString();
//            logger.info("[" + getAgName() + "] receved mail: " + ms);

			if (p.equals(Percept.visibleEdge) || p.equals(Percept.visibleEntity)
    				|| p.equals(Percept.visibleVertex) || p.equals(Percept.probedVertex)
    				|| p.equals(Percept.surveyedEdge) || p.equals(Percept.saboteur)
    				|| p.equals(Percept.inspectedEntity) || p.startsWith(Percept.coworker)) {
				im.remove();	// removes the percept from the mailbox
			}
		}

	}