public class VertexWrapper<TENSOR,VERTEX extends Vertex<TENSOR,VERTEX>> extends java.lang.Object implements Vertex<TENSOR,VERTEX>, NonProbabilistic<TENSOR>, NonSaveableVertex
Constructor and Description |
---|
VertexWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Vertex<?,?> v) |
void |
addParent(Vertex<?,?> parent) |
void |
addParents(java.util.Collection<? extends Vertex> parents) |
TENSOR |
calculate() |
boolean |
equals(java.lang.Object o) |
TENSOR |
eval() |
java.util.Set<Vertex> |
getChildren() |
java.util.Set<Vertex> |
getConnectedGraph() |
int |
getDegree() |
VertexId |
getId() |
int |
getIndentation() |
VertexLabel |
getLabel() |
long |
getLength() |
java.util.Optional<TENSOR> |
getObservedValue() |
java.util.Set<Vertex> |
getParents() |
int |
getRank() |
VariableReference |
getReference() |
long[] |
getShape() |
VertexState<TENSOR> |
getState() |
long[] |
getStride() |
TENSOR |
getValue() |
int |
hashCode() |
boolean |
hasValue() |
boolean |
isDifferentiable() |
boolean |
isObserved() |
boolean |
isProbabilistic() |
TENSOR |
lazyEval() |
void |
observe(TENSOR value) |
void |
observeOwnValue() |
java.lang.Class<?> |
ofType() |
VERTEX |
print() |
VERTEX |
print(java.lang.String message,
boolean printData) |
VERTEX |
removeLabel() |
void |
setAndCascade(TENSOR value) |
VERTEX |
setLabel(java.lang.String label) |
VERTEX |
setLabel(VertexLabel label) |
void |
setParents(java.util.Collection<? extends Vertex> parents) |
void |
setParents(Vertex<?,?>... parents) |
void |
setState(VertexState<TENSOR> newState) |
void |
setValue(TENSOR value) |
java.lang.String |
toString() |
void |
unobserve() |
NonProbabilisticVertex<TENSOR,?> |
unwrap() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
public VERTEX setLabel(VertexLabel label)
public VERTEX setLabel(java.lang.String label)
public VertexLabel getLabel()
public VERTEX removeLabel()
public TENSOR lazyEval()
public TENSOR eval()
public boolean isProbabilistic()
public boolean isDifferentiable()
public void setValue(TENSOR value)
public TENSOR getValue()
public VertexState<TENSOR> getState()
public void setState(VertexState<TENSOR> newState)
public boolean hasValue()
public long[] getShape()
public long[] getStride()
public long getLength()
public int getRank()
public VERTEX print()
public VERTEX print(java.lang.String message, boolean printData)
public void setAndCascade(TENSOR value)
public void observe(TENSOR value)
public void observeOwnValue()
public void unobserve()
public boolean isObserved()
isObserved
in interface Observable<TENSOR>
isObserved
in interface Vertex<TENSOR,VERTEX extends Vertex<TENSOR,VERTEX>>
public java.util.Optional<TENSOR> getObservedValue()
getObservedValue
in interface Observable<TENSOR>
getObservedValue
in interface Vertex<TENSOR,VERTEX extends Vertex<TENSOR,VERTEX>>
public VariableReference getReference()
getReference
in interface Variable<TENSOR,VertexState<TENSOR>>
getReference
in interface Vertex<TENSOR,VERTEX extends Vertex<TENSOR,VERTEX>>
public VertexId getId()
public int getIndentation()
public java.util.Set<Vertex> getChildren()
public void addChild(Vertex<?,?> v)
public void setParents(java.util.Collection<? extends Vertex> parents)
public void setParents(Vertex<?,?>... parents)
public void addParents(java.util.Collection<? extends Vertex> parents)
public void addParent(Vertex<?,?> parent)
public java.util.Set<Vertex> getParents()
public int getDegree()
public java.util.Set<Vertex> getConnectedGraph()
public java.lang.Class<?> ofType()
public TENSOR calculate()
calculate
in interface NonProbabilistic<TENSOR>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public NonProbabilisticVertex<TENSOR,?> unwrap()