public abstract class Pin_FBcl<Type_Pin extends Pin_FBcl<Type_Pin,Type_Connect>,Type_Connect extends Pin_FBcl<Type_Connect,Type_Pin>> extends PinBase_FBcl
Modifier and Type | Class and Description |
---|---|
static class |
Pin_FBcl.XXXXXEKind |
PinBase_FBcl.EPinKind
Modifier and Type | Field and Description |
---|---|
java.util.List<Type_Connect> |
connect |
private java.util.List<Evchain_FBcl.Wr> |
evChainShow
Note whether this pin is a member of a event chain.
|
FBlock_FBcl |
fb
The block which this connection is member of.
|
private long |
mEvChains
Up to 64 evChain can tangent this pin. 1 bit per chain.
|
private long |
mEvChainsDep
Up to 64 evChain which's data and outputs are depending from this pin.
|
protected java.util.Map<java.lang.String,Type_Connect> |
sorted |
ixPin, kind, mAssociatedEvData, namePin
Constructor and Description |
---|
Pin_FBcl(PinBase_FBcl.EPinKind what,
java.lang.String namePin,
int ixPin,
FBlock_FBcl fb)
If not null then it contains the generation rule to execute the data access operation.
|
Modifier and Type | Method and Description |
---|---|
void |
addEvchain(Evchain_FBcl.Wr evchain) |
void |
addEvchainDepending(int ixEvChainInMdl) |
boolean |
connectFrom(Type_Connect fromPin)
Sets the connection between this and any destination, it is an in pin of any other
FBlock_FBcl
If the same toPin is already connected, nothing is done. |
java.util.List<Type_Connect> |
connections() |
boolean |
containsEvchain(Evchain_FBcl evchain) |
boolean |
containsOtherEvchain(Evchain_FBcl evchain) |
DinType_FBcl |
dinType()
Gets the din from the Type of the given FBlock.
|
DoutType_FBcl |
doutType()
Gets the dout from the Type of the given FBlock.
|
java.lang.String |
evChainHex() |
EvinType_FBcl |
evinType()
Gets the evin from the Type of the given FBlock.
|
EvoutType_FBcl |
evoutType()
Gets the evout from the Type of the given FBlock.
|
Type_Connect |
getFirstConnection()
If the connection has at least one partner, returns the first or only one.
|
java.lang.String |
getNameFBpin()
Gets a String with the FBLock name and the pin name.
|
Type_Connect |
getOneConnection()
If the ev input has exactly one source, returns it.
|
java.util.Iterator<Type_Connect> |
iterConnections() |
java.lang.Iterable<Evchain_FBcl> |
iterEvchainDep(Module_FBcl mdl) |
java.lang.Iterable<Evchain_FBcl.Wr> |
iterEvchainShow() |
int |
nrofConnections() |
void |
removeConnections()
Removes all connections from this pin.
|
protected void |
throwError(java.lang.String txt,
DinoutType_FBcl src) |
java.lang.String |
toString() |
java.lang.String |
toStringDtype() |
java.lang.String |
wrConInfo()
Returns the connection info as String without the information about
fb info. |
addAssociatedEvData, dtype, maskAssociatedEvData
private java.util.List<Evchain_FBcl.Wr> evChainShow
private long mEvChains
private long mEvChainsDep
public final FBlock_FBcl fb
public final java.util.List<Type_Connect extends Pin_FBcl<Type_Connect,Type_Pin>> connect
protected final java.util.Map<java.lang.String,Type_Connect extends Pin_FBcl<Type_Connect,Type_Pin>> sorted
public Pin_FBcl(PinBase_FBcl.EPinKind what, java.lang.String namePin, int ixPin, FBlock_FBcl fb)
public boolean connectFrom(Type_Connect fromPin)
FBlock_FBcl
If the same toPin is already connected, nothing is done. Twice trying connection is allowed.
It is asserted if the same toPin is not connected , this is not connected in toPin too.
It is called in preparation process.
Note: It is package private, only used in the Overridden Pin_FBcl#connectFrom(ConnIn_FBcl)
toPin
- the partner, there the connection is added too.public java.util.List<Type_Connect> connections()
public int nrofConnections()
public Type_Connect getOneConnection()
#getMultipleSrcEv()
to check all event sources if this operation returns null.public Type_Connect getFirstConnection()
public void removeConnections()
public java.util.Iterator<Type_Connect> iterConnections()
public EvinType_FBcl evinType()
public EvoutType_FBcl evoutType()
public DinType_FBcl dinType()
public DoutType_FBcl doutType()
public java.lang.String getNameFBpin()
public java.lang.String wrConInfo()
fb
info.
It is especially for out connections in the netlist. The FBlock info is written already in the head information.public void addEvchain(Evchain_FBcl.Wr evchain)
public void addEvchainDepending(int ixEvChainInMdl)
public boolean containsEvchain(Evchain_FBcl evchain)
public boolean containsOtherEvchain(Evchain_FBcl evchain)
public java.lang.Iterable<Evchain_FBcl> iterEvchainDep(Module_FBcl mdl)
public java.lang.Iterable<Evchain_FBcl.Wr> iterEvchainShow()
public java.lang.String evChainHex()
public java.lang.String toStringDtype()
Object.toString()
public java.lang.String toString()
toString
in class PinBase_FBcl
protected void throwError(java.lang.String txt, DinoutType_FBcl src)