org.griphyn.cPlanner.code.generator.condor.style
Class Abstract

java.lang.Object
  extended by org.griphyn.cPlanner.code.generator.condor.style.Abstract
All Implemented Interfaces:
CondorStyle
Direct Known Subclasses:
Condor, CondorG, CondorGlideIN

public abstract class Abstract
extends Object
implements CondorStyle

An abstract implementation of the CondorStyle interface. Impelements the initialization method.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
protected  LogManager mLogger
          A handle to the logging object.
protected  PegasusProperties mProps
          The object holding all the properties pertaining to Pegasus.
protected  PoolInfoProvider mSCHandle
          The handle to the Site Catalog.
 
Fields inherited from interface org.griphyn.cPlanner.code.generator.condor.CondorStyle
VERSION
 
Constructor Summary
Abstract()
          The default constructor.
 
Method Summary
protected  String errorMessage(SubInfo job, String style, String universe)
          Constructs an error message in case of style mismatch.
 void initialize(PegasusProperties properties, PoolInfoProvider siteCatalog)
          Initializes the Code Style implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.griphyn.cPlanner.code.generator.condor.CondorStyle
apply
 

Field Detail

mProps

protected PegasusProperties mProps
The object holding all the properties pertaining to Pegasus.


mSCHandle

protected PoolInfoProvider mSCHandle
The handle to the Site Catalog.


mLogger

protected LogManager mLogger
A handle to the logging object.

Constructor Detail

Abstract

public Abstract()
The default constructor.

Method Detail

initialize

public void initialize(PegasusProperties properties,
                       PoolInfoProvider siteCatalog)
                throws CondorStyleException
Initializes the Code Style implementation.

Specified by:
initialize in interface CondorStyle
Parameters:
properties - the PegasusProperties object containing all the properties required by Pegasus.
siteCatalog - a handle to the Site Catalog being used.
Throws:
CondorStyleException - in case of any error occuring code generation.

errorMessage

protected String errorMessage(SubInfo job,
                              String style,
                              String universe)
Constructs an error message in case of style mismatch.

Parameters:
job - the job object.
style - the name of the style.
universe - the universe associated with the job.


Copyright © 2007 The University of Southern California. All Rights Reserved.