Java agent modelling.