Package com.tnsai.annotations
Annotation Interface Norm
Defines a social norm (obligation, prohibition, or permission) for a role.
Norms extend BDI agents with deontic logic, specifying what agents MUST, MAY, and MUST NOT do in social contexts.
Usage
@Norm(type = NormType.OBLIGATION,
condition = "task.priority == 'CRITICAL'",
action = "notifyHuman",
description = "Must notify human for critical tasks")
public class EmergencyRole extends Role { }
@Norm(type = NormType.PROHIBITION,
condition = "context.confidential == true",
action = "shareWithExternalAgent",
description = "Must not share confidential data externally")
public class DataHandlerRole extends Role { }
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe condition expression under which this norm is active.Human-readable description of the norm.intPriority when norms conflict (higher = more important).
-
Element Details
-
type
NormType typeThe type of norm (obligation, prohibition, or permission). -
condition
String conditionThe condition expression under which this norm is active. When empty, the norm is always active.- Default:
""
-
action
String actionThe action this norm applies to. -
description
String descriptionHuman-readable description of the norm.- Default:
""
-
priority
int priorityPriority when norms conflict (higher = more important).- Default:
0
-