public class CMSComponentDescription extends Object implements IComponentDescription, Cloneable
PROCESSINGSTATE_IDLE, PROCESSINGSTATE_READY, PROCESSINGSTATE_RUNNING, STATE_ACTIVE, STATE_INITIATED, STATE_SUSPENDED, STATE_TERMINATED, STATE_TRANSIT
Constructor and Description |
---|
CMSComponentDescription()
Create a new CESComponentDescription.
|
CMSComponentDescription(IComponentIdentifier cid,
String type,
Boolean master,
Boolean daemon,
Boolean autoshutdown,
IMonitoringService.PublishEventLevel monitoring,
Boolean synchronous,
String modelname,
String localtype,
IResourceIdentifier rid,
long creationtime,
IComponentIdentifier creator,
Cause cause)
Create a new CESComponentDescription.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(IComponentIdentifier child)
Add a child component.
|
Object |
clone()
Clone a component description.
|
boolean |
equals(Object o)
Test if this description equals another description.
|
Boolean |
getAutoShutdown()
Get the autoshutdown.
|
String[] |
getBreakpoints()
Get the enabled breakpoints (if any).
|
Cause |
getCause()
Get the cause.
|
IComponentIdentifier[] |
getChildren()
Get the children.
|
long |
getCreationTime()
Get the creation time.
|
IComponentIdentifier |
getCreator()
Get the creator.
|
Boolean |
getDaemon()
Get the daemon.
|
String |
getLocalType()
Get the localtype.
|
Boolean |
getMaster()
Get the master.
|
String |
getModelName()
Get the model name.
|
IMonitoringService.PublishEventLevel |
getMonitoring()
Get the monitoring.
|
IComponentIdentifier |
getName()
Get the componentidentifier of this CESComponentDescription.
|
String |
getOwnership()
Get the ownership of this CESComponentDescription.
|
IResourceIdentifier |
getResourceIdentifier()
Get the resource identifier.
|
String |
getState()
Get the state of this CESComponentDescription.
|
Boolean |
getSynchronous()
Get the synchronous flag.
|
String |
getType()
Get the component type.
|
int |
hashCode()
Get the hash code of this description.
|
void |
removeChild(IComponentIdentifier child)
Remove a child component.
|
void |
setAutoShutdown(Boolean autoshutdown)
Set the autoshutdown.
|
void |
setBreakpoints(String[] breakpoints)
Set the enabled breakpoints (if any).
|
void |
setCause(Cause cause)
Set the cause.
|
void |
setCreationTime(long creationtime)
Set the creationtime.
|
void |
setCreator(IComponentIdentifier creator)
Set the creator.
|
void |
setDaemon(Boolean daemon)
Set the daemon.
|
void |
setLocalType(String localtype)
Set the localtype.
|
void |
setMaster(Boolean master)
Set the master.
|
void |
setModelName(String modelname)
Set the model name.
|
void |
setMonitoring(IMonitoringService.PublishEventLevel monitoring)
Set the monitoring.
|
void |
setName(IComponentIdentifier name)
Set the componentidentifier of this CESComponentDescription.
|
void |
setOwnership(String ownership)
Set the ownership of this CESComponentDescription.
|
void |
setResourceIdentifier(IResourceIdentifier rid)
Set the resource identifier.
|
void |
setState(String state)
Set the state of this CESComponentDescription.
|
void |
setSynchronous(Boolean synchronous)
Set the synchronous flag.
|
void |
setType(String type)
Set the component type.
|
String |
toString()
Get a string representation of this description.
|
public CMSComponentDescription()
public CMSComponentDescription(IComponentIdentifier cid, String type, Boolean master, Boolean daemon, Boolean autoshutdown, IMonitoringService.PublishEventLevel monitoring, Boolean synchronous, String modelname, String localtype, IResourceIdentifier rid, long creationtime, IComponentIdentifier creator, Cause cause)
public String getState()
getState
in interface IComponentDescription
public void setState(String state)
state
- the value to be setpublic IComponentIdentifier getName()
getName
in interface IComponentDescription
public void setName(IComponentIdentifier name)
name
- the value to be setpublic IResourceIdentifier getResourceIdentifier()
getResourceIdentifier
in interface IComponentDescription
public void setResourceIdentifier(IResourceIdentifier rid)
rid
- The resource identifier.public void addChild(IComponentIdentifier child)
child
- The child component.public void removeChild(IComponentIdentifier child)
child
- The child component.public IComponentIdentifier[] getChildren()
public String getOwnership()
getOwnership
in interface IComponentDescription
public void setOwnership(String ownership)
ownership
- the value to be setpublic String getType()
getType
in interface IComponentDescription
public void setType(String type)
type
- The component type name (e.g. 'BDI Agent').public String[] getBreakpoints()
getBreakpoints
in interface IComponentDescription
public void setBreakpoints(String[] breakpoints)
breakpoints
- The enabled breakpoints.public Boolean getMaster()
getMaster
in interface IComponentDescription
public void setMaster(Boolean master)
master
- The master to set.public Boolean getDaemon()
getDaemon
in interface IComponentDescription
public void setDaemon(Boolean daemon)
daemon
- The daemon to set.public Boolean getAutoShutdown()
getAutoShutdown
in interface IComponentDescription
public void setAutoShutdown(Boolean autoshutdown)
autoshutdown
- The autoshutdown to set.public String getModelName()
getModelName
in interface IComponentDescription
public void setModelName(String modelname)
modelname
- The model name.public String getLocalType()
getLocalType
in interface IComponentDescription
public void setLocalType(String localtype)
localtype
- The localtype to set.public long getCreationTime()
getCreationTime
in interface IComponentDescription
public void setCreationTime(long creationtime)
creationtime
- The creationtime to set.public IComponentIdentifier getCreator()
getCreator
in interface IComponentDescription
public void setCreator(IComponentIdentifier creator)
creator
- The creator to set.public Cause getCause()
getCause
in interface IComponentDescription
public void setCause(Cause cause)
cause
- The cause to set.public IMonitoringService.PublishEventLevel getMonitoring()
getMonitoring
in interface IComponentDescription
public void setMonitoring(IMonitoringService.PublishEventLevel monitoring)
monitoring
- The monitoring to set.public Boolean getSynchronous()
getSynchronous
in interface IComponentDescription
public void setSynchronous(Boolean synchronous)
synchronous
- The synchronous flag.public boolean equals(Object o)
public int hashCode()
public String toString()
Copyright © 2013. All Rights Reserved.