eu.planets_project.services.datatypes
Class Agent

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Agent

public Agent(java.lang.String id,
             java.lang.String name,
             java.lang.String type)
Parameters:
id - The agent ID
name - The agent name
type - The agent type
Method Detail

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.