nl.tudelft.simulation.messaging.devices.components
Class DeviceState
java.lang.Object
nl.tudelft.simulation.messaging.devices.components.DeviceState
- All Implemented Interfaces:
- java.io.Serializable
- public class DeviceState
- extends java.lang.Object
- implements java.io.Serializable
The state of the device as a resource, indicating whether it is working or
not.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
- Version:
- $$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:12 $$
- Author:
- Peter
Jacobs , Stijn-Pieter van Houten
, Alexander
Verbraeck
- See Also:
- Serialized Form
|
Field Summary |
static DeviceState |
BUSY
static state to indicate busy device, operation has to wait |
static DeviceState |
IDLE
static state to indicate idle device, in other words ready to use |
|
Constructor Summary |
DeviceState(java.lang.String description,
boolean working)
creates a state |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IDLE
public static final DeviceState IDLE
- static state to indicate idle device, in other words ready to use
BUSY
public static final DeviceState BUSY
- static state to indicate busy device, operation has to wait
DeviceState
public DeviceState(java.lang.String description,
boolean working)
- creates a state
- Parameters:
description - the description of this deviceworking - indicates whether this state is a working state
getDescription
public java.lang.String getDescription()
- Returns:
- Returns the state description.
isWorking
public boolean isWorking()
- Returns:
- Returns whether the device is working.
equals
public boolean equals(java.lang.Object arg0)
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- See Also:
Object.hashCode()
toString
public java.lang.String toString()
- See Also:
Object.toString()
Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.