Command
E173615
Command is a behavioral design pattern that encapsulates a request as an object, allowing parameterization, queuing, logging, and support for undoable operations.
All labels observed (3)
| Label | Occurrences |
|---|---|
| Command pattern | 2 |
| Command canonical | 1 |
| Command (design pattern) | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T1531326 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: Command Context triple: [Design Patterns: Elements of Reusable Object-Oriented Software, describesPattern, Command]
-
A.
Home Command
Home Command was a major British Army formation responsible for the administration, training, and home defence of forces within the United Kingdom.
-
B.
Strike Command
Strike Command was a major Royal Air Force operational command responsible for controlling the UK’s bomber and fighter forces during much of the Cold War and post-war period.
-
C.
Engineer Command
Engineer Command is a specialized branch-level unit of the Spanish Army responsible for military engineering, construction, fortifications, and related technical support to land forces.
-
D.
Training Command
Training Command is a major formation of the Indian Air Force responsible for overseeing and conducting the training of its aircrew and personnel.
-
E.
personnel command
Personnel command is a military administrative function responsible for managing human resources, including assignments, promotions, and personnel records.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: Command Target entity description: Command is a behavioral design pattern that encapsulates a request as an object, allowing parameterization, queuing, logging, and support for undoable operations.
-
A.
Home Command
Home Command was a major British Army formation responsible for the administration, training, and home defence of forces within the United Kingdom.
-
B.
Strike Command
Strike Command was a major Royal Air Force operational command responsible for controlling the UK’s bomber and fighter forces during much of the Cold War and post-war period.
-
C.
Engineer Command
Engineer Command is a specialized branch-level unit of the Spanish Army responsible for military engineering, construction, fortifications, and related technical support to land forces.
-
D.
Training Command
Training Command is a major formation of the Indian Air Force responsible for overseeing and conducting the training of its aircrew and personnel.
-
E.
personnel command
Personnel command is a military administrative function responsible for managing human resources, including assignments, promotions, and personnel records.
- F. None of above. chosen
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf |
behavioral design pattern
ⓘ
design pattern ⓘ |
| allows | parameterization of clients with different requests ⓘ |
| alsoKnownAs |
Action
ⓘ
Transaction ⓘ |
| appearsIn | Design Patterns: Elements of Reusable Object-Oriented Software ⓘ |
| belongsTo |
Design Patterns: Elements of Reusable Object-Oriented Software
ⓘ
surface form:
Gang of Four design patterns
|
| canBeImplementedWith |
callbacks
ⓘ
function objects or functors ⓘ lambda expressions ⓘ |
| canIncrease | number of small command classes ⓘ |
| Client | creates ConcreteCommand objects ⓘ |
| ConcreteCommand | binds a Receiver to an action ⓘ |
| decouples |
invoker from receiver
ⓘ
object that invokes operation from object that knows how to perform it ⓘ |
| defines | command interface with execute operation ⓘ |
| enables |
dynamic reconfiguration of commands at runtime
ⓘ
macro commands ⓘ replay of operations ⓘ transaction-like group of operations ⓘ |
| encapsulates | request as an object ⓘ |
| Invoker | stores and invokes commands ⓘ |
| oftenDefines | undo operation ⓘ |
| oftenUsedWith |
Composite pattern for macro commands
ⓘ
Invoker objects like buttons or menu items ⓘ Memento pattern for undo ⓘ |
| participantsInclude |
Client
ⓘ
Command interface ⓘ ConcreteCommand ⓘ Invoker ⓘ Receiver ⓘ |
| promotes |
open-closed principle
ⓘ
single responsibility principle ⓘ |
| Receiver | knows how to perform the work ⓘ |
| supports |
history of executed commands
ⓘ
logging of requests ⓘ queuing of requests ⓘ undoable operations ⓘ |
| typicalMethodName |
execute
ⓘ
undo ⓘ |
| usedFor |
implementing undo-redo stacks
ⓘ
job queues ⓘ macro recording ⓘ menu actions in GUIs ⓘ task scheduling systems ⓘ toolbar actions in GUIs ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: Command Description of subject: Command is a behavioral design pattern that encapsulates a request as an object, allowing parameterization, queuing, logging, and support for undoable operations.
Referenced by (4)
Full triples — surface form annotated when it differs from this entity's canonical label.