A Method for Entity-Relationship Behavior Modeling