eu.planets_project.services.datatypes
Class Agent
java.lang.Object
eu.planets_project.services.datatypes.Agent
- All Implemented Interfaces:
- java.io.Serializable
public final class Agent
- extends java.lang.Object
- implements java.io.Serializable
Planets agent representation.
Instances of this class are immutable and so can be shared freely.
- See Also:
- Serialized Form
Constructor Summary |
Agent(java.lang.String id,
java.lang.String name,
java.lang.String type)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Agent
public Agent(java.lang.String id,
java.lang.String name,
java.lang.String type)
- Parameters:
id
- The agent IDname
- The agent nametype
- The agent type
getId
public java.lang.String getId()
- Returns:
- The ID
getName
public java.lang.String getName()
- Returns:
- The name
getType
public java.lang.String getType()
- Returns:
- The type
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.