Search in sources :

Example 26 with Jack

use of com.cas.circuit.vo.Jack in project TeachingInSimulation by ScOrPiOzzy.

the class Inverter method initialize.

@Override
public void initialize(Node elecCompMdl) {
    super.initialize(elecCompMdl);
    assist = new InvertorAssist(this);
    controlVoltEnv = "Invertor_" + hashCode() + "_ControlVoltage";
    _r = elecComp.getDef().getTerminal("R");
    _s = elecComp.getDef().getTerminal("S");
    _t = elecComp.getDef().getTerminal("T");
    _u = elecComp.getDef().getTerminal("U");
    _v = elecComp.getDef().getTerminal("V");
    _w = elecComp.getDef().getTerminal("W");
    Jack jack_pu = elecComp.getDef().getJackMap().get("PU");
    _rda = jack_pu.getStitch().get("3");
    _rdb = jack_pu.getStitch().get("4");
    _sda = jack_pu.getStitch().get("1");
    _sdb = jack_pu.getStitch().get("2");
}
Also used : Jack(com.cas.circuit.vo.Jack)

Example 27 with Jack

use of com.cas.circuit.vo.Jack in project TeachingInSimulation by ScOrPiOzzy.

the class ServoMotor method initialize.

@Override
public void initialize(Node elecCompMdl) {
    super.initialize(elecCompMdl);
    Jack jack_power = elecComp.getDef().getJackMap().get("Power");
    if (jack_power == null) {
        throw new RuntimeException("伺服电机没有配置电源插口,提示 <Jack id=\"Power\">");
    }
    u = jack_power.getStitch().get("1");
    v = jack_power.getStitch().get("2");
    w = jack_power.getStitch().get("3");
    pe = jack_power.getStitch().get("4");
}
Also used : Jack(com.cas.circuit.vo.Jack)

Aggregations

Jack (com.cas.circuit.vo.Jack)27 Terminal (com.cas.circuit.vo.Terminal)11 GasPort (com.cas.gas.vo.GasPort)5 Cable (com.cas.circuit.vo.Cable)4 Wire (com.cas.circuit.vo.Wire)4 Spatial (com.jme3.scene.Spatial)4 ElecCompDef (com.cas.circuit.vo.ElecCompDef)3 Pipe (com.cas.gas.vo.Pipe)3 ArrayList (java.util.ArrayList)3 MesureResult (com.cas.circuit.util.MesureResult)2 R (com.cas.circuit.util.R)2 ResisRelation (com.cas.circuit.vo.ResisRelation)2 Node (com.jme3.scene.Node)2 SignalVolt (com.cas.circuit.SignalVolt)1 TransducersAdapter (com.cas.circuit.event.TransducersAdapter)1 TransducersHandler (com.cas.circuit.event.TransducersHandler)1 LinkerMsg (com.cas.circuit.msg.LinkerMsg)1 ControlIO (com.cas.circuit.vo.ControlIO)1 ElecComp (com.cas.circuit.vo.ElecComp)1 Format (com.cas.circuit.vo.Format)1