org.gwe.p2elv2.model
Class PVariable

java.lang.Object
  extended by org.gwe.p2elv2.model.PVariable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PVariableArray

public class PVariable
extends java.lang.Object
implements java.io.Serializable

Since:
Jul 30, 2008
Author:
Marco Ruiz
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
static java.lang.String RUN_VAR_PREFIX
           
static java.lang.String SYS_VAR_PREFIX
           
 
Constructor Summary
PVariable()
           
PVariable(java.lang.String name, java.lang.String constantValue)
           
 
Method Summary
 PVarValueSpace generateValueSpace(PPermutation permKey, PStatementContext ctx)
           
 int getDependencyOrder(java.util.List<PVariable> varsSortedByDependencyLevel)
           
 java.lang.String getDimension()
           
 java.lang.String getFullName()
           
 PFunctionInvocation getFunctionInvocation()
           
 java.lang.String getName()
           
 java.util.Set<java.lang.String> getVarDependencyNames()
           
 java.lang.String getVarReference()
           
 boolean isDependentOnRuntimeVars()
           
 boolean isDependentOnSystemVars()
           
 boolean isPermutable()
           
 boolean isRuntime()
           
 boolean isSingleValue()
           
 boolean isVarConstSingleValue()
           
 boolean isVarResolvedBy(java.util.List<PVariable> varsResolved, java.lang.String... varsResolvedGroups)
           
 void setConstantValue(java.lang.String constantValue)
           
 void setFunctionInvocation(PFunctionInvocation functionInvocation)
           
 void setNameParts(java.util.List<java.lang.String> nameParts)
           
 void setNameParts(java.lang.String... nameParts)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYS_VAR_PREFIX

public static final java.lang.String SYS_VAR_PREFIX
See Also:
Constant Field Values

RUN_VAR_PREFIX

public static final java.lang.String RUN_VAR_PREFIX
See Also:
Constant Field Values

name

protected java.lang.String name
Constructor Detail

PVariable

public PVariable()

PVariable

public PVariable(java.lang.String name,
                 java.lang.String constantValue)
Method Detail

setNameParts

public void setNameParts(java.lang.String... nameParts)

setNameParts

public void setNameParts(java.util.List<java.lang.String> nameParts)

getName

public java.lang.String getName()

getDimension

public java.lang.String getDimension()

getFunctionInvocation

public PFunctionInvocation getFunctionInvocation()

setFunctionInvocation

public void setFunctionInvocation(PFunctionInvocation functionInvocation)

setConstantValue

public void setConstantValue(java.lang.String constantValue)

isSingleValue

public boolean isSingleValue()
                      throws P2ELFunctionNotSupported
Throws:
P2ELFunctionNotSupported

isRuntime

public boolean isRuntime()
                  throws P2ELFunctionNotSupported
Throws:
P2ELFunctionNotSupported

isVarConstSingleValue

public boolean isVarConstSingleValue()

isPermutable

public boolean isPermutable()

generateValueSpace

public PVarValueSpace generateValueSpace(PPermutation permKey,
                                         PStatementContext ctx)
                                  throws P2ELDependentVariableNotResolvedException,
                                         P2ELFunctionNotSupported
Throws:
P2ELDependentVariableNotResolvedException
P2ELFunctionNotSupported

getFullName

public java.lang.String getFullName()

getVarReference

public java.lang.String getVarReference()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isVarResolvedBy

public boolean isVarResolvedBy(java.util.List<PVariable> varsResolved,
                               java.lang.String... varsResolvedGroups)

getDependencyOrder

public int getDependencyOrder(java.util.List<PVariable> varsSortedByDependencyLevel)

isDependentOnSystemVars

public boolean isDependentOnSystemVars()

isDependentOnRuntimeVars

public boolean isDependentOnRuntimeVars()

getVarDependencyNames

public java.util.Set<java.lang.String> getVarDependencyNames()


Copyright © 2007-2009. All Rights Reserved.