public class LENodable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
LENodable.Type
Type is a typesafe enum class that describes the type of Instance this is
|
Modifier and Type | Field and Description |
---|---|
protected VarContext |
context |
protected float |
leX |
protected LENetwork |
outputNetwork |
protected int |
parallelGroup |
protected float |
su |
Constructor and Description |
---|
LENodable(Nodable no,
LENodable.Type type,
Variable mfactorVar,
Variable suVar,
Variable parallelGroupVar)
Create a new LEInstance tied to the Nodable.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPort(java.lang.String name,
LEPin.Dir dir,
float le,
Network jnet)
Add a port to this LEInstance
|
protected LENodable |
copy() |
protected LENodable |
createUniqueInstance(VarContext context,
LENetwork outputNetwork,
float mfactor,
float su,
LENetlister.NetlisterConstants constants)
Factory method to create a copy of this Nodable with the context-relevant info
evaluated.
|
protected java.lang.String |
getName() |
protected Nodable |
getNodable()
Get the nodable
|
protected Network |
getOutputNet()
Get the output network
|
protected java.util.List<LEPin> |
getPins()
Get the pins
|
protected LENodable.Type |
getType()
Get the type
|
protected boolean |
isGate()
True if this is a gate
|
protected boolean |
isLeGate()
Return true if this is a sizeable gate
|
protected void |
print() |
protected float |
printLoadInfo(LEPin pin,
float alpha) |
protected java.lang.String |
printOneLine(java.lang.String indent) |
protected void |
printPins() |
protected boolean |
setOnlyContext(VarContext context,
LENetwork outputNetwork,
float mfactor,
float su,
LENetlister.NetlisterConstants constants)
Set the only context of this LENodable.
|
protected void |
setOutputNet(Network jnet)
Set the output network
|
protected VarContext context
protected LENetwork outputNetwork
protected float su
protected float leX
protected int parallelGroup
public LENodable(Nodable no, LENodable.Type type, Variable mfactorVar, Variable suVar, Variable parallelGroupVar)
no
- the Nodableprotected LENodable copy()
protected void addPort(java.lang.String name, LEPin.Dir dir, float le, Network jnet)
name
- the name of the portdir
- the direction of the portle
- the logical effort of the portprotected void setOutputNet(Network jnet)
protected Network getOutputNet()
protected Nodable getNodable()
protected LENodable.Type getType()
protected java.util.List<LEPin> getPins()
protected boolean isLeGate()
protected boolean isGate()
protected boolean setOnlyContext(VarContext context, LENetwork outputNetwork, float mfactor, float su, LENetlister.NetlisterConstants constants)
context
- the contextoutputNetwork
- the global network loading the outputmfactor
- the parent's mfactorsu
- the parent's step-upprotected LENodable createUniqueInstance(VarContext context, LENetwork outputNetwork, float mfactor, float su, LENetlister.NetlisterConstants constants)
context
- the contextoutputNetwork
- the global network loading the outputmfactor
- the parent's mfactorsu
- the parent's step-upprotected java.lang.String getName()
protected void print()
protected java.lang.String printOneLine(java.lang.String indent)
protected void printPins()
protected float printLoadInfo(LEPin pin, float alpha)