org.gscg.common.interactionlayer.dataobjects
Class LocationAndNameData

java.lang.Object
  extended byorg.gscg.common.interactionlayer.dataobjects.LocationAndNameData
All Implemented Interfaces:
java.io.Serializable

public class LocationAndNameData
extends java.lang.Object
implements java.io.Serializable

The LocationAndNameData object contains the information with regards to the differnt actors in an interactive simulation. Whenever an actor is added or removed, and upon initialization this object is send to client-side grapbical user interfaces in order to update the WorldPanel. These data objects are sent by the YellowPage object.

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.

Since:
1.0.0
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:33:58 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Field Summary
static java.lang.String ACTORTYPE_CUSTOMER
          the customer type
static java.lang.String ACTORTYPE_DC
          the dc type
static java.lang.String ACTORTYPE_MANUFACTURER
          the manufacturer type
static java.lang.String ACTORTYPE_MARKET
          the market type
static java.lang.String ACTORTYPE_RETAILER
          the retailer type
static java.lang.String ACTORTYPE_SUPPLIER
          the supplier type
 
Constructor Summary
LocationAndNameData()
          constructs a new LocationAndNameData
LocationAndNameData(nl.tudelft.simulation.language.d3.DirectedPoint location, java.lang.String name, java.lang.String actorType, boolean interactive)
          constructs a new LocationObject
 
Method Summary
 java.lang.String getActorType()
           
 nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
           
 java.lang.String getName()
           
 boolean isInteractive()
          Method isInteractive.
 boolean isStatus()
          Method isStatus.
 void setActorType(java.lang.String actorType)
           
 void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
           
 void setName(java.lang.String name)
           
 void setStatus(boolean status)
          Method setStatus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTORTYPE_SUPPLIER

public static final java.lang.String ACTORTYPE_SUPPLIER
the supplier type

See Also:
Constant Field Values

ACTORTYPE_MANUFACTURER

public static final java.lang.String ACTORTYPE_MANUFACTURER
the manufacturer type

See Also:
Constant Field Values

ACTORTYPE_DC

public static final java.lang.String ACTORTYPE_DC
the dc type

See Also:
Constant Field Values

ACTORTYPE_RETAILER

public static final java.lang.String ACTORTYPE_RETAILER
the retailer type

See Also:
Constant Field Values

ACTORTYPE_MARKET

public static final java.lang.String ACTORTYPE_MARKET
the market type

See Also:
Constant Field Values

ACTORTYPE_CUSTOMER

public static final java.lang.String ACTORTYPE_CUSTOMER
the customer type

See Also:
Constant Field Values
Constructor Detail

LocationAndNameData

public LocationAndNameData()
constructs a new LocationAndNameData


LocationAndNameData

public LocationAndNameData(nl.tudelft.simulation.language.d3.DirectedPoint location,
                           java.lang.String name,
                           java.lang.String actorType,
                           boolean interactive)
constructs a new LocationObject

Parameters:
location - the location
name - the name
actorType - the type of actor
interactive - indicates whether the actor is human controlled or not
Method Detail

isStatus

public boolean isStatus()
Method isStatus.

Returns:
returns true if human controlled actor is online

setStatus

public void setStatus(boolean status)
Method setStatus.

Parameters:
status - true if the human controlled actor is online

getLocation

public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
Returns:
Returns the location.

getName

public java.lang.String getName()
Returns:
Returns the name.

setLocation

public void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
Parameters:
location - The location to set.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getActorType

public java.lang.String getActorType()
Returns:
Returns the actorType.

setActorType

public void setActorType(java.lang.String actorType)
Parameters:
actorType - The actorType to set.

isInteractive

public boolean isInteractive()
Method isInteractive.

Returns:
returns a boolean indicating whether the actor is human controlled or not


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.