com.projectdarkstar.tools.dtc.domain
Class ClientAppConfig

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.ClientAppConfig
All Implemented Interfaces:
Serializable

public class ClientAppConfig
extends Object
implements Serializable

Represents a runtime configuration for a ClientApp.

See Also:
Serialized Form

Constructor Summary
ClientAppConfig()
           
ClientAppConfig(String name, String path, ClientAppConfigType propertyMethod, ClientApp clientApp)
           
 
Method Summary
 boolean equals(Object o)
           
 ClientApp getClientApp()
          Returns the parent ClientApp which this configuration is associated with.
 Long getId()
          Returns the id of the entity in persistent storage
 String getName()
           
 String getPath()
          Returns the system path required to initiate execution of this client simulator.
 List<Property> getProperties()
          Returns a list of arguments in the form of Property objects to be passed to the client during run time.
 ClientAppConfigType getPropertyMethod()
          Returns the mechanism required to pass arguments to the client executable.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setClientApp(ClientApp clientApp)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setPath(String path)
           
 void setProperties(List<Property> properties)
           
 void setPropertyMethod(ClientAppConfigType propertyMethod)
           
protected  void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientAppConfig

public ClientAppConfig()

ClientAppConfig

public ClientAppConfig(String name,
                       String path,
                       ClientAppConfigType propertyMethod,
                       ClientApp clientApp)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

setVersionNumber

protected void setVersionNumber(Long versionNumber)

getName

public String getName()

setName

public void setName(String name)

getPath

public String getPath()
Returns the system path required to initiate execution of this client simulator. The path could be a java executable or some other executable type since the client is not required to be a java application.

Returns:
path of the client application executable

setPath

public void setPath(String path)

getPropertyMethod

public ClientAppConfigType getPropertyMethod()
Returns the mechanism required to pass arguments to the client executable.

Returns:
mechanism required to pass arguments to the client

setPropertyMethod

public void setPropertyMethod(ClientAppConfigType propertyMethod)

getClientApp

public ClientApp getClientApp()
Returns the parent ClientApp which this configuration is associated with.

Returns:
parent ClientApp for this configuration

setClientApp

public void setClientApp(ClientApp clientApp)

getProperties

public List<Property> getProperties()
Returns a list of arguments in the form of Property objects to be passed to the client during run time.

Returns:
list of arguments

setProperties

public void setProperties(List<Property> properties)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.