jadex.application.model
Class MComponentInstance

java.lang.Object
  extended by jadex.application.model.MStartable
      extended by jadex.application.model.MComponentInstance

public class MComponentInstance
extends MStartable

Component instance representation.


Field Summary
protected  List arguments
          The list of contained arguments.
protected  String configuration
          The configuration.
protected  String name
          The name.
protected  IParsedExpression number
          The number of components.
protected  boolean start
          The start flag.
protected  String typename
          The type name.
 
Constructor Summary
MComponentInstance()
          Create a new component.
 
Method Summary
 void addArgument(MExpressionType arg)
          Add an argument.
 List getArguments()
          Get the list of arguments.
 String getConfiguration()
          Get the configuration.
 String getName()
          Get the name.
 IParsedExpression getNumber()
          Get the number (expression).
 MComponentType getType(MApplicationType apptype)
          Get the model of the component instance.
 String getTypeName()
          Get the type name.
 boolean isStart()
          Test if component should be started (not only created).
 void setConfiguration(String configuration)
          Set the configuration.
 void setName(String name)
          Set the name.
 void setNumber(IParsedExpression number)
          Set the number text.
 void setStart(boolean start)
          Set if the component should also be started.
 void setTypeName(String typename)
          Set the type name.
 String toString()
          A string of this object.
 
Methods inherited from class jadex.application.model.MStartable
getAutoShutdown, getDaemon, getMaster, getSuspend, setAutoShutdown, setDaemon, setMaster, setSuspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
The name.


typename

protected String typename
The type name.


configuration

protected String configuration
The configuration.


start

protected boolean start
The start flag.


number

protected IParsedExpression number
The number of components.


arguments

protected List arguments
The list of contained arguments.

Constructor Detail

MComponentInstance

public MComponentInstance()
Create a new component.

Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public void setName(String name)
Set the name.

Parameters:
name - The name to set.

getTypeName

public String getTypeName()
Get the type name.

Returns:
The type name.

setTypeName

public void setTypeName(String typename)
Set the type name.

Parameters:
type - The type name to set.

getConfiguration

public String getConfiguration()
Get the configuration.

Returns:
The configuration.

setConfiguration

public void setConfiguration(String configuration)
Set the configuration.

Parameters:
configuration - The configuration to set.

isStart

public boolean isStart()
Test if component should be started (not only created).

Returns:
True, if should be started.

setStart

public void setStart(boolean start)
Set if the component should also be started.

Parameters:
start - The start flag to set.

setNumber

public void setNumber(IParsedExpression number)
Set the number text.

Parameters:
numbertext - The number text.

getNumber

public IParsedExpression getNumber()
Get the number (expression).

Returns:
The number.

addArgument

public void addArgument(MExpressionType arg)
Add an argument.

Parameters:
arg - The argument.

getArguments

public List getArguments()
Get the list of arguments.

Returns:
The arguments.

getType

public MComponentType getType(MApplicationType apptype)
Get the model of the component instance.

Parameters:
apptype - The application type this component is used in.
Returns:
The name of the component type.

toString

public String toString()
A string of this object.

Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.