摘要:Operating in highly dynamic and unpredictable environments with partial requirements, modern software systems are characterized by context-awareness, flexible organization and dynamic interactions. The increasing complexity desires natural high-level abstractions and effective programming mechanisms to facilitate the development and maintenance of such systems. However, the abstraction, composition and interaction mechanisms in current programming approaches do not directly support those characteristics. This paper proposes an organization-based agent-oriented programming (OrgAOP) approach that treats organizations, roles and groups explicitly, and provides mechanisms to support context-awareness, flexible organization and dynamic interactions. This paper describes the philosophy of OrgAOP, designs a programming language OragentL with explicit language facilities supporting OrgAOP and illustrates how to program and implement MAS with OragentL by a case study.