tags:

views:

34

answers:

3

How can a piece of hardware be an actor when designing a use case diagram?

I got confused because I've read on Wikipedia this:

A use case should not include detail regarding user interfaces and screens. This is done in user-interface design, which references the use case and its business rules.

If you give me an example about hardware being an actor, I'd be grateful.

+2  A: 

How about a third party system - for example a warehouse management system that produces a feed of stock level changes for different products, which is consumed by your retail application.

That would be an actor. It will not have a UI or screen, but communicate with your system, cause different events to occur and have its own business rules.

Oded
You're talking about a third party system as an actor, but I'm asking about a hardware being an actor.. I don't think you got my question!
Shaza
@Shaza - How is a computer on another network not a piece of hardware? If you have something more specific in mind, please edit your question and add more detail to it.
Oded
The piece of hardware can be for example a sensor, right? So it is still an actor - it does send some information to the system.
Lucho
@Lucho - my point is that a remote computer is just as much a piece of hardware...
Oded
@Oded I agree with you, I was writing to @Shaza
Lucho
+1. I'd consider an actor to be other systems/subsystems, databases, hardware, devices.
p.campbell
@Lucho - apologies... didn't realize.
Oded
@ Oded: Thanks got it !
Shaza
+4  A: 

I'd suggest the important part here is the definition of an actor.

An actor specifies a role played by a person or thing when interacting with the system

In the system of traffic intersection, there are many 'hardware' actors, including Car and Traffic Light. The system under consideration is the rules around what do to (yield, merge, stop) and when.

p.campbell
+1  A: 

The following can all be "actors" on a system you are describing, if these components are outside the scope of the system being described:

  • A scheduled task
  • A server component
  • An automated network client (or whatever's on the other end of a network connection)

If the source of a request for your system to do something is outside the scope of the system, it is usually not necessary to separate the human component from any external tool or hardware they are using to facilitate the requests on your system. In such cases, the actors could very well be automatons.

KeithS