com.irisel.pm.internal
Class GroupImpl

java.lang.Object
  extended by com.irisel.pm.internal.GroupImpl
All Implemented Interfaces:
Constants, Group, GroupTypes, Status
Direct Known Subclasses:
ProcessImpl

public class GroupImpl
extends java.lang.Object
implements Group


Field Summary
 
Fields inherited from interface com.irisel.pm.Status
ST_CANCELLED, ST_ERROR, ST_NEW, ST_RUNNING, ST_SUSPENDED, ST_WAITING
 
Fields inherited from interface com.irisel.pm.GroupTypes
TYPE_LEAF, TYPE_PARALLEL, TYPE_SERIAL
 
Constructor Summary
GroupImpl()
           
GroupImpl(Instance grpInst)
           
GroupImpl(Instance group, Instance procInst, Instance parentGroupInst)
           
 
Method Summary
 CLBrowser getBrowser()
           
 Group[] getChildren()
           
 Instance getGrp()
           
 Instance getGrpInst()
           
 long getId()
           
 org.apache.log4j.Logger getLogger()
           
 java.lang.String getName()
           
 Group getParent()
           
 Group[] getSiblings()
           
 int getStatus()
           
 int getType()
           
 boolean hasChildren()
           
 boolean isCancelled()
           
 boolean isError()
           
 boolean isLeaf()
           
 boolean isParallel()
           
 boolean isRunning()
           
 boolean isSerial()
           
 boolean isSuspended()
           
 boolean isTop()
           
 boolean isWaiting()
           
 void resume(boolean force)
           
 void setBrowser(CLBrowser browser)
           
 void setGrp(Instance model)
           
 void setGrpInst(Instance instance)
           
 void setLogger(org.apache.log4j.Logger logger)
           
 void setResponse(java.util.HashMap map)
           
 void setStatus(int status)
           
 void start()
           
 void stop()
           
 void suspend()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupImpl

public GroupImpl()
          throws PMException
Throws:
PMException

GroupImpl

public GroupImpl(Instance group,
                 Instance procInst,
                 Instance parentGroupInst)
          throws PMException
Throws:
PMException

GroupImpl

public GroupImpl(Instance grpInst)
          throws PMException
Throws:
PMException
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Group

getType

public int getType()
Specified by:
getType in interface Group

getStatus

public int getStatus()
Specified by:
getStatus in interface Group

getId

public long getId()
Specified by:
getId in interface Group

getGrp

public Instance getGrp()
Specified by:
getGrp in interface Group

getGrpInst

public Instance getGrpInst()
Specified by:
getGrpInst in interface Group

start

public void start()
           throws PMException
Specified by:
start in interface Group
Throws:
PMException

suspend

public void suspend()
             throws PMException
Specified by:
suspend in interface Group
Throws:
PMException

resume

public void resume(boolean force)
            throws PMException
Specified by:
resume in interface Group
Throws:
PMException

stop

public void stop()
          throws PMException
Specified by:
stop in interface Group
Throws:
PMException

setResponse

public void setResponse(java.util.HashMap map)
                 throws PMException
Specified by:
setResponse in interface Group
Throws:
PMException

getParent

public Group getParent()
Specified by:
getParent in interface Group

getChildren

public Group[] getChildren()
Specified by:
getChildren in interface Group

getSiblings

public Group[] getSiblings()
Specified by:
getSiblings in interface Group

isTop

public boolean isTop()
Specified by:
isTop in interface Group

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface Group

isSerial

public boolean isSerial()
Specified by:
isSerial in interface Group

isParallel

public boolean isParallel()
Specified by:
isParallel in interface Group

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface Group

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Group

isWaiting

public boolean isWaiting()
Specified by:
isWaiting in interface Group

isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface Group

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Group

isError

public boolean isError()
Specified by:
isError in interface Group

getBrowser

public CLBrowser getBrowser()

setBrowser

public void setBrowser(CLBrowser browser)

getLogger

public org.apache.log4j.Logger getLogger()

setLogger

public void setLogger(org.apache.log4j.Logger logger)

setGrpInst

public void setGrpInst(Instance instance)
                throws PMException
Throws:
PMException

setGrp

public void setGrp(Instance model)

setStatus

public void setStatus(int status)
Specified by:
setStatus in interface Group